How to Kill a Windows Process Remotely using PowerShell?

You may want to kill a Windows Process on a remote computer for many reasons. Thanks to PowerShell, this task can be performed easily using the Get-WmiObject cmdlet.

  • First, use the Get-WmiObject cmdlet to get the process
  • Next, use the “terminate()” function to kill the process.

In order to use this script, save it as “Kill-RemotelyProcess.ps1” and run the following command:


Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 217 Articles
I work as a System Engineer, based in Switzerland with a primary focus on Microsoft technologies. I have 7 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers" and "Administering & Deploying SCCM" certified.