Run perfmon.exe /sys to Remember Your Counters in Windows Perfmon (free video)

The problem

By default, the Performance Monitor application in Windows doesn’t remember which counters you like to use.

This can mean a lot of clicking every single time you open perfmon.

The easy solution

Run: perfmon.exe /sys

This makes perfmon remember the counters and configuration that you like to use!

Watch this 2.5 minute video to see how the magic happens:

4 thoughts on “Run perfmon.exe /sys to Remember Your Counters in Windows Perfmon (free video)

  1. What is this dark magic?!

    1. I know, right? I hadn’t used this in a little while and couldn’t remember which switch to use the other day. Maybe it was my keywords, but it took me 10 minutes of searching to figure it out. I was like “MUST MAKE VIDEO!”

  2. Great tip!

  3. I have a couple of sets of counters that I like to have saved off (basic use case: if I have five different SQL instances, I might want to have one perfmon window per instance; YMMV). What I do to accomplish this is instead of launching perfmon.exe directly, I launch mmc, add the perfmon snap-in, configure the counters I want, and then save the mmc to a file. This allows me to pull up the file and instantly have the counters that are appropriate for the scenario that I’m looking at.

    I know that the scenario that you’re describing here is different (i.e. you’re essentially setting the default counters that get added to perfmon if you start it by hand) and I’m totally going to use it to set sane defaults. I hope your readers get something out of my ramblings above though, too!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.