workans
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user