Skip to content

Instantly share code, notes, and snippets.

@gabrielrojasnyc
Created March 23, 2016 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielrojasnyc/708ee23c5f89daccbc30 to your computer and use it in GitHub Desktop.
Save gabrielrojasnyc/708ee23c5f89daccbc30 to your computer and use it in GitHub Desktop.
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