PS> $a = get-process
PS> get-process -inputobject $a
| format-table -view priority
Explanation: The first command gets all of the processes on the computer and stores them in the $a variable. The second command uses the InputObject parameter to pass the process objects that are stored in the $a variable to Get-Process. The pipeline operator passes the objects to the Format-Table cmdlet, which formats the processes by using the "Priority" view defined in the PS1XML format files in the Windows PowerShell home directory ($pshome).
PriorityClass: Normal/ High. It shows properties such as ProcessName, Id, HandleCount, WorkingSet
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment