Manage System Processes Using Windows PowerShell

Managing System Processes

You can easily manage system processes using Windows PowerShell by just typing some simple Cmdlets. Below are some of the examples to help you manage system processes using Windows PowerShell.

Get All The Running Processes

To get all current running processes on a computer, use Get-Process Cmdlet. It will return all the running processes.


PS C:\ > Get-Process

Windows PowerShell.


List of all running processes

Get a Specific Process

To get a specific a running process, use Get-Process with the -Name or -Id parameter


PS C:\ > Get-Process -id 2196

Windows PowerShell.

Stopping a Process

To stop a running process, use Stop-Process Cmdlet.


PS C:\ > Stop-Process -ID Process ID

Windows PowerShell.

This will stop Internet Explorer from running. You can also stop a Process using -Name parameter.

Starting a Process

To start a process, use Start-Process Cmdlet.


PS C:\ > Start-Process

Windows PowerShell.

The above Cmdlet will Start Internet Exploer and redirects to the Gmail website.

To Find Examples of Start-Process.

Use PowerShell Help system to explore more about Start-process and find some examples about it.


PS C:\ > Get-Help Start-Process -Examples

Windows PowerShell.

Waiting for a Process to be Stopped

Wait-process waits for running processes to be stopped before accepting any input.


PS C:\ > Wait-process -name outlook 20

[ Waits 20 seconds for outlook process to stop ]