Managing Processes

In PowerShell, you can use two cmdlets to manage processes. The first cmdlet, Get-Process, is used to get information about the current processes that are running on the local Windows system:

PS C:\> get-processHandles  NPM(K)    PM(K)      WS(K) VM(M)   CPU(s)     Id ProcessName-------  ------    -----      ----- -----   ------     -- -----------    782      12     2500       4456   113     4.02    448 csrss    237      10     3064       6228   113    76.70    488 csrss    292      26    20180      14632   356    12.94   1496 dfsrs    160      13     3020       5536    55     0.34   2696 dfssvc    203      24     6368       5888    64     1.75   3220 dns...

To filter the object collection that is returned by the Get-Process ...

Get Windows Server® 2012 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.