Wednesday, July 10, 2013

Kill all Powershell Instances Except Mine

Get-Process Powershell  | Where-Object { $_.ID -ne $pid } | Stop-Process


Or kill all X processes except mine.



Get-Process Whatever | Where-object {$_.ID -ne $pid} | Stop-Process

0 comments:

Post a Comment