O'Reilly logo

Windows Server 2016 Automation with PowerShell Cookbook - Second Edition by Thomas Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

The Get-Counter cmdlet is the tool you use both to discover the performance counter sets and counters, as well as, to get specific the counter samples. In step 1, you get all the performance counter sets on the local system and display the results. The results you obtain vary depending on the specific features you install on your computers. On the SRV1 VM, step 1 looked like this:

In step 2, you expand the scope a bit to return the number of counter sets in multiple machines in the network. The domain controllers and other servers have different features loaded. Therefore you see different number of counter sets on each machine: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required