For system, network and cloud administrators
Being able to view/display a list of all active/running processes/applications when using Windows via PowerShell has really helped me with my automation tasks, especially when working remotely.
First, run Windows PowerShell. Once you’ve launched your PowerShell console, we’ll use the Get-Process
command which will list all active/running processes/applications on your Windows machine. Once PowerShell launched, type:
Get-Process
With Format-Table
, you can filter the list of all active/running processes/applications on your Windows machine by ProcessName, Id, CPU, for example. The -AutoSize
option will format the entire output in a more readable approach :
Get-Process | Format-Table ProcessName, Id, CPU -AutoSize
You can also output that formatted list all active/running processes in Windows to a file:
Get-Process | Format-Table ProcessName, Id, CPU > D:\tmp\processes.txt