The code snippet below shows how to get CPU utilization for a host.
Get-WmiObject
-Class
win32_Processor
-ComputerName
<ip address> | select DeviceID,Name,Status,LoadPercentage |
Sort-Object
LoadPercentage
-Descending
Note: You have to update ip address or hostname to get output.
No comments:
Post a Comment