Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: help with this script

$
0
0

Have you considered just running Get-Process? That shows CPU usage on a per-process basis.

But there’s no way to insert a value into a performance counter.

Also, [System.Environment]::ProcessorCount shows the *number of processors in the machine*, not the CPU usage.

So I’m confused about what you want.


Viewing all articles
Browse latest Browse all 13067

Trending Articles