Managing Windows processes

There may be times when, during scripting, you need to check if there is a running process on a system. PowerShell offers the get-process cmdlet to search for available processes on a system. By running the get-process cmdlet alone, you will get a report of all the running services on the system. The default record set that is returned about the running services include:

  • Handles: The number of thread handles that are being used by a particular process
  • NPM (K): Non Paged Memory is the memory that is solely in physical memory, and not allocated to the page file that is being used by a process
  • PM (K): Pageable Memory is the memory that is being allocated to the page file that is used by a process
  • WS(K): Working Set is the memory ...

Get PowerShell: Automating Administrative Tasks 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.