This commit is contained in:
2025-09-26 22:05:51 -06:00
parent 4e72b62c73
commit d73bcc5f1a
+12 -5
View File
@@ -30,7 +30,7 @@ shutdown /a
chkdsk /r C: chkdsk /r C:
# pause # pause for clarity # pause # pause for clarity
## starts Windows Defender Offline Scan after reboot ## starts Windows Defender Offline Scan after reboot
Start-MpWDOScan; # Start-MpWDOScan # fuckin autorestarts
# pause # pause for clarity # pause # pause for clarity
# notify user # notify user
@@ -43,7 +43,14 @@ Write-Host "$reboot_time | Reboot Time"
## send da webhookd thingggg ## send da webhookd thingggg
webhook "FORCING OFF FROM WINDOWS AT $reboot_time" true webhook "FORCING OFF FROM WINDOWS AT $reboot_time" true
# forced (/f) reboot (/r) in seconds (/t) # must be in this order~ Start-Sleep -Seconds $total_wait_seconds
Write-Host shutdown /f /r /t $total_wait_seconds
Write-Host "`nSCHEDULED REBOOT IN $total_wait_seconds seconds`n" # do reboot
pause # pause for clarity in the new window ## schedule shutdown
## redundant but also for warnings
### reboot (-r) forced (-t) in seconds (-t)
shutdown -r -f -t ($total_wait_seconds+10)
## Start Windows Defender Offline Scan
## wastes time
## does the actual reboot
Start-MpWDOScan