Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Collecting Performance Counters with PowerShell

$
0
0

Q: Can I use PowerShell to collect system performance data without using Perfmon?

A: Yes. Using the PowerShell Get-Counter cmdlet you can directly query all of the available performance monitor counters that are in the system. For instance, the following line illustrates how to use the Get-Counter cmdlet to return the value of the Processor(_Total)\% Processor Time counter which shows the total CPU usage for the system.

Read More


Viewing all articles
Browse latest Browse all 6937

Trending Articles