1754737799

This commit is contained in:
2025-08-09 05:09:58 -06:00
parent b2d7ce9312
commit 1847b249be
+1 -3
View File
@@ -32,13 +32,11 @@ Start-Job -ScriptBlock {
Start-Sleep -Seconds 3 # $wait_seconds Start-Sleep -Seconds 3 # $wait_seconds
# force reboot # force reboot
## terminal notice
Write-Host "FORCING REBOOT IN $grace_minutes MINUTES"
## popup ## popup
$shell = New-Object -ComObject 'WScript.Shell' $shell = New-Object -ComObject 'WScript.Shell'
# $shell.Popup(string <MESSAGE>, int <MODE>, string <WINDOW_TITLE>, int <CONTROLS>) # $shell.Popup(string <MESSAGE>, int <MODE>, string <WINDOW_TITLE>, int <CONTROLS>)
$shell.Popup("REBOOTING BY FORCE IN $grace_minutes MINUTES", 2, "REBOOTING AS FUCK IN $grace_minutes MINUTES", 0) ## reboot, force, delay $grace_seconds seconds $shell.Popup("REBOOTING BY FORCE IN $grace_minutes MINUTES", 2, "REBOOTING AS FUCK IN $grace_minutes MINUTES", 0) ## reboot, force, delay $grace_seconds seconds
## must use fuckin cmd bullshit grumble grumble ## must use fuckin cmd bullshit grumble grumble
## cancel with shutdown /a ## cancel with shutdown /a
shutdown.exe -ArgumentList /f /r /t $grace_seconds Invoke-Expression "shutdown.exe" -ArgumentList /f /r /t $grace_seconds
} | Out-Null # no bizzle } | Out-Null # no bizzle