watchdog-vm/watchdog-wow.ps1

10 lines
268 B
PowerShell
Raw Normal View History

2024-07-27 23:46:00 +03:00
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
}