Get-Process
is a PowerShell cmdlet used to retrieve information about the processes running on a computer. It allows users to view details such as process names, process IDs (PIDs), memory usage, CPU usage, and more.
Here’s how to use Get-Process
:
- Open PowerShell by searching for it in the Start menu or by pressing Win + X and selecting “Windows PowerShell” or “Windows PowerShell (Admin)”.
- Once PowerShell is open, you can simply type
Get-Process
and press Enter to retrieve information about all processes running on the computer.
Get-Process
This command will display a list of processes along with details such as the ProcessName, ProcessId (PID), Handles, NPM(K) (Non-Paged Memory in Kilobytes), PM(K) (Paged Memory in Kilobytes), WS(K) (Working Set in Kilobytes), CPU(s), and more.
- You can also use various parameters with
Get-Process
to filter the results or retrieve specific information. Some common parameters include:
-Name
: Retrieves processes with the specified name.Get-Process -Name "explorer"
-Id
: Retrieves the process with the specified process ID (PID).Get-Process -Id 1234
-FileVersionInfo
: Retrieves file version information for each process.Get-Process | Select-Object -Property Name, FileVersionInfo
-Module
: Retrieves the modules associated with each process.Get-Process | Get-Module
-CPU
: Sorts the processes by CPU usage.Get-Process | Sort-Object -Property CPU
- After executing the
Get-Process
cmdlet with the desired parameters, PowerShell will display the requested information based on the specified filters or sorting options.
Get-Process
is a powerful tool for monitoring and managing processes in PowerShell, providing insights into the performance and resource usage of running applications on a computer.