I've noticed something strange about the get-process command, not sure if this is a bug or just my expectations.
When running get-process with the -computername parameter, I've noticed that the CPU column is empty for all processes.
If you run just get-process, to do get this column populated.
Can anyone advise?
This problem is not powershell and it will not change in V3,because this is internal desing.Information about remote processes read from HKEY_PERFORMANCE_DATA,but counters kernel time and user time are not available via HKEY_PERFORMANCE_DATA for remote data,only for local using.
- Edited by KazunMVP Wednesday, February 29, 2012 11:35 AM
on another note, why doesn't the username for each process get displayed?
Use WMI class Win32_Process to get UserName:
Thanks I knew about this from some research earlier in the week. I think this should be included in get-process some how.
I'm writing a script for a TS to monitor process activity. The information provided by get process is brillent and exsactly what I'm looking for and exporting to a csv is a breeze. Using win32_process is more convoluted to achevie the same takes, examples include total processor time, non paged memory, paged memory. I could not figure where these and others live in win32_process. But the work around provided in the above thread would get round this.
- Edited by ZeniTimes Wednesday, February 29, 2012 11:53 AM