Killing All Remote PowerShell Sessions

by Jul 31, 2013

In a previous tip we explained how you can enumerate who is connected to your machine via PowerShell Remoting, and how you can terminate individual remote shells.

If you want to simply kill all remote PowerShell sessions running on your machine, you can restart the WinRM service like this (provided you own Administrator privileges):

Note however that this will terminate any remote session that uses WinRM.

Twitter This Tip! ReTweet this Tip!