Wednesday 4 September 2013

Kill a not responding application from PowerShell

Type the command in a notepad and save it as "name.ps1" and run it with powershell

$notres = Get-Process | Where-Object { $_.responding -eq $false}
$notres.kill()

No comments:

Post a Comment