I am running a power shell script to produce the top 10 processes on a node but it will not monitor due to the Get Output Failed. It is producing the output needed. Hoe can one use this script
Get-Process | Sort-Object -Property 'CPU' -Descending | Select-Object -First 10
and correctly format it to produce a correctly formatted out put from what follows???
Get Output Failed:
Output: ==============================================
Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName
------- ------ ----- ----- ------ -- -- -----------
1205 49 440148 413184 470,831.67 5208 0 java
500 33 62084 30600 87,914.69 8088 0 BESClient
671 39 420056 213064 65,804.56 3408 0 ccSvcHst
732 17 7136 17408 62,287.94 908 0 svchost
3735 295 122224 153988 14,327.77 3400 0 ccSvcHst
2172 0 192 152 13,284.42 4 0 System
464 24 134844 130800 8,082.42 7408 0 xagt
600 27 17080 34604 3,640.59 4620 0 WmiPrvSE
354 17 21816 24252 3,069.27 9008 0 svchost
230 12 3676 10216 2,705.22 2512 0 svchost
How shall one statistic I tried
"Statistic :<Handle>",
"Statistic :<NPM(K>",
"Statistic :<PM(K)>",
"Statistic :<WS(K)>",
"Statistic :<CPU(s)>",
"Statistic :<Id>",
"Statistic :<SI>",
"Statistic :<ProcessName>"
but it came back as NaN
An add on question is can one go back in time and produce the process information as listed on a CPU from for example 11/2/2024?