O'Reilly logo

Mastering Windows PowerShell Scripting by Brenton J.W. Blawat

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required