Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

get CPU percent

1 view
Skip to first unread message

PoShNoob

unread,
Mar 15, 2010, 10:36:01 AM3/15/10
to

im trying to get the cpu average for all cpus at a single point in time, so
its just a single value. im not sure if Get-Counter '\Processor(*)\%
Processor Time' is the right way to go. can someone please point me in the
right direction?
--
PoShNoob

RichS [MVP]

unread,
Mar 15, 2010, 3:33:01 PM3/15/10
to
Try

Get-Counter -Counter "\Processor(_Total)\% Processor Time" -MaxSamples 4


--
Richard Siddaway
All scripts are supplied "as is" and with no warranty
PowerShell MVP
Blog and PowerShell User Group:
http://msmvps.com/blogs/RichardSiddaway/Default.aspx

0 new messages