Created
March 23, 2016 02:14
-
-
Save gabrielrojasnyc/708ee23c5f89daccbc30 to your computer and use it in GitHub Desktop.
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
Start-Job -ScriptBlock { | |
$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 | |
} -Name Counter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment