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

Print Friendly, PDF & Email
This entry was posted in Information Technology and tagged . Bookmark the permalink.

Comments are closed.