watchdog-vm/watchdog-wow.ps1

10 lines
259 B
PowerShell

for (;;) {
$NRESP = Get-Process | Where-Object {$_.mainWindowTitle} | Where -Property MainWindowTitle -eq "World of Warcraft" | Where -Property Responding -eq $false
if ($NRESP) {
Stop-Process -InputObject $NRESP
}
Start-Sleep 60
}