1754754663

This commit is contained in:
2025-08-09 09:51:02 -06:00
parent 26eb320eee
commit 47db2a1b44
+2 -4
View File
@@ -25,23 +25,21 @@ shutdown /a
Write-Host "$(Get-Date -Format 'hh:mm:ss tt') | Start Time" Write-Host "$(Get-Date -Format 'hh:mm:ss tt') | Start Time"
# shutdown time # shutdown time
Write-Host "$reboot_time | Reboot Time" Write-Host "`n$reboot_time | Reboot Time"
Write-Host "`nSleeping for $Hours hours $Minutes minutes and forking to background to prevent cheating...`n" Write-Host "`nSleeping for $Hours hours $Minutes minutes and forking to background to prevent cheating...`n"
webhook "SCHEDULED REBOOT AT $reboot_time" webhook "SCHEDULED REBOOT AT $reboot_time"
# popup
$popup_shell.Popup("REBOOTING BY FORCE IN $Hours HOURS $Minutes MINUTES AT $reboot_time", 2, "REBOOTING AS FUCK IN $total_wait_minutes MINUTES", 0) | Out-Null $popup_shell.Popup("REBOOTING BY FORCE IN $Hours HOURS $Minutes MINUTES AT $reboot_time", 2, "REBOOTING AS FUCK IN $total_wait_minutes MINUTES", 0) | Out-Null
function do_admin_shit { function do_admin_shit {
# handle interactive shit right away # handle interactive shit right away
## schedule chkdsk to take up fuckin tons of time ## schedule chkdsk to take up fuckin tons of time
Start-Process -Verb RunAs -FilePath cmd.exe -ArgumentList '/C "chkdsk /r C:"' Start-Process -Verb RunAs -FilePath cmd.exe -ArgumentList '/C "chkdsk /r C:"'
# Start-Process -Verb RunAs -FilePath cmd.exe -ArgumentList '/K "chkdsk /r E: && chkdsk /r D: && chkdsk /r C: && exit"'
## must use fuckin cmd bullshit grumble grumble ## must use fuckin cmd bullshit grumble grumble
## cancel with shutdown /a ## cancel with shutdown /a
# shutdown /f /r /t $total_wait_seconds
# sleep
Start-Sleep -Seconds $total_wait_seconds Start-Sleep -Seconds $total_wait_seconds
# popup # popup