Tuesday, January 20, 2009

list of processes using $_

to list of processes but display the name and CPU time

PS> get-process
| forEach-object { write-host $_.ProcessName $_.CPU }

No comments:

Post a Comment