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
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