This commit is contained in:
2025-09-26 22:32:39 -06:00
parent c566a1a79b
commit 531ccbfec0
+6 -6
View File
@@ -63,15 +63,15 @@ chkdsk /r C:
pause # pause for clarity pause # pause for clarity
Start-Process -ScriptBlock { Start-Process -ScriptBlock {
# Do the sleep # schedule shutdown
Start-Sleep -Seconds $total_wait_seconds
# do rebot
## schedule shutdown
## redundant but also for warnings ## redundant but also for warnings
### reboot (-r) forced (-t) in seconds (-t) ### reboot (-r) forced (-t) in seconds (-t)
shutdown -r -f -t ($total_wait_seconds+10) # 10 second bonus to defer to Start-MpWDOScan shutdown -r -f -t ($total_wait_seconds+10) # 10 second bonus to defer to Start-MpWDOScan
## Start Windows Defender Offline Scan
# Do the sleep
Start-Sleep -Seconds $total_wait_seconds
# Start Windows Defender Offline Scan
## wastes time ## wastes time
## does the actual reboot ## does the actual reboot
Start-MpWDOScan Start-MpWDOScan