1754755562

This commit is contained in:
2025-08-09 10:06:02 -06:00
parent 3930b1dbc4
commit 54a4f766c4
+2 -2
View File
@@ -45,7 +45,7 @@ function do_admin_shit {
# popup
## $popup_shell.Popup(string <MESSAGE>, int <MODE>, string <WINDOW_TITLE>, int <CONTROLS>)
$popup_shell.Popup("REBOOTING BY FORCE IN $grace_minutes MINUTES", 2, "REBOOTING AS FUCK IN $grace_minutes MINUTES", 0) | Out-Null ## reboot, force, delay $grace_seconds seconds
Start-Sleep -Seconds $grace_seconds && Start-Process -Verb RunAs -FilePath powershell.exe -ArgumentList "-C 'shutdown /r /f /t $grace_seconds'" # '-C "Start-MpWDOScan"'
Start-Sleep -Seconds $grace_seconds && Start-Process -Verb RunAs -FilePath powershell.exe -ArgumentList '-C "Start-MpWDOScan"'
}
Start-Job -ScriptBlock ${function:do_admin_shit}
do_admin_shit | Out-Null