watchdog-vm/watchdog-wow.ps1
2024-07-27 23:46:23 +03:00

10 lines
268 B
PowerShell

while ($true) {
$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 -s 120
}