For system, network and cloud administrators

How to stop a Windows process/application via PowerShell

How to stop a Windows application using PowerShell

There comes a time when you’ll need to know how to stop a Windows application (your browser, your chat application, etc.) via the Windows PowerShell. It’s useful when you’re planning on creating scripts to automate tasks. Here we go.

  1. Run Windows PowerShell.
  2. Once you’ve launched your PowerShell console, inside it type:
 Stop-Process -Name ApplicationName

where ApplicationName is the name of your Windows application that you want to stop. For example:

  • if you want to stop the Slack Windows application, in Windows PowerShell just type:
 Stop-Process -Name Slack
  • if you want to stop the Microsoft Teams Windows application, in Windows PowerShell just type:
 Stop-Process -Name Teams

If you want to include more processes/applications, you’ll need to get a full list of all active/running Windows processes/applications first.

Leave a Reply

Your email address will not be published. Required fields are marked *