Skip to content

Instantly share code, notes, and snippets.

@bill-long
Created October 23, 2020 17:58
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 bill-long/a46e1166631ed27a9d26e010514d66d6 to your computer and use it in GitHub Desktop.
Save bill-long/a46e1166631ed27a9d26e010514d66d6 to your computer and use it in GitHub Desktop.
Start perfmon with all counters, all instances, updating every 1 minute
get-counter -ListSet * | Sort CounterSetName | % { ("\\localhost\" + $_.CounterSetName + "\*") } | Out-File .\allcounters.txt
logman create counter -n "All Counters" -cf .\allcounters.txt -rf 8:00:00 -si 00:01:00
logman start "All Counters"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment