Created
March 23, 2016 02:11
-
-
Save gabrielrojasnyc/8e857ec23cbe76810072 to your computer and use it in GitHub Desktop.
Counter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$TimeStamp = get-date -Format MMddyy'T'HHmm | |
$Counters = "\Processor(*)\% Processor Time", "\LogicalDisk(C:)\Disk Reads/sec", "\Memory\Pages/sec", "\memory\available mbytes", "\TCPv4\Segments/sec" | |
Get-Counter -Continuous $Counters | Export-Counter C:\Counters\counter"$timestamp".blg -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment