Skip to content

PowerShell process properties

In PowerShell, process objects returned by commands like Get-Process possess a variety of properties that describe the state and resource usage of a running process.^[600-developer-learn-powershell01.md] These properties allow for detailed system inspection and management.

Core Properties

When a process is queried, standard properties are displayed by default, such as: * Handles: The number of handles the process has opened. * NPM (PM): Non-paged memory (in Kilobytes). * PM (PM): Paged memory (in Kilobytes). * WS (WS): Working Set size (in Kilobytes). * VM (VM): Virtual memory size (in Megabytes). * CPU (s): The amount of processor time the process has utilized. * Id: The unique Process ID (PID). * ProcessName: The name of the process.^[600-developer-learn-powershell01.md]

Extended Properties and Configuration

Beyond the default view, process objects contain extended properties accessible via Select-Object *.^[600-developer-learn-powershell01.md] These include detailed metadata such as __NounName and specific memory counters like VM (Virtual Memory in bytes), WS (Working Set in bytes), and NPM (Non-Paged Memory in bytes).^[600-developer-learn-powershell01.md]

Processes also contain a StartInfo property. This property can be used to access details about the environment in which the process started, such as EnvironmentVariables and specific Environment settings.^[600-developer-learn-powershell01.md]

Threads

Processes are composed of one or more threads. The Threads property of a process object returns a collection representing the threads associated with that process.^[600-developer-learn-powershell01.md]

  • [[PowerShell]]
  • [[System Administration]]
  • [[Process Management]]

Sources

^[600-developer-learn-powershell01.md]