Kill all but own powershell process

use the following command within powershell to terminate all but your one shell.

get-process | where {$_.name -like “powershell” -and $_.ID  -notlike “$pid”} | stop-process

This entry was posted in Information Technology and tagged . Bookmark the permalink.

Comments are closed.