How To kill a process on a Remote Computer using PowerShell

In Windows, we can kill processes running on a remote computer using the taskkill command. We can specify process id/image file name/user name to identify the processes that need to be killed. In this article I’ll show you how to kill a process on a remote computer using a PowerShell function.

PowerShell function

Save the PowerShell function above to Task-Kill.psm1 in the folder C:\Program Files\WindowsPowerShell\Modules\Task-Kill.

Open a PowerShell console with administrator privileges and run for example execute the following PowerShell command:

A grid view window will open, in this example I select the Process Name notepad++ process and click on OK to kill that process.

Once you click OK you will see the following:

Click on “Y” to continue and kill the process notepad++.

I really like to hear what you have to say about this article:

  • Was this article helpful for you or do you have any questions?
  • Do you have additions, suggestions or any other ideas?
  • Just let me know by leaving a comment below.

Thank you for spending some time at my site and in my blog. I hope you come to visit again soon 😉

About Lex van der Horst 201 Articles
Techwire

Be the first to comment

Leave a Reply