1758945132
This commit is contained in:
@@ -28,10 +28,10 @@ shutdown /a
|
|||||||
## checks C drive after reboot to waste time and fix errors
|
## checks C drive after reboot to waste time and fix errors
|
||||||
## chkdsk /r C: # as admin
|
## chkdsk /r C: # as admin
|
||||||
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;
|
||||||
pause # pause for clarity
|
# pause # pause for clarity
|
||||||
|
|
||||||
# notify user
|
# notify user
|
||||||
## Warning
|
## Warning
|
||||||
@@ -43,7 +43,7 @@ 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
|
||||||
|
|
||||||
# schedule (/t) forced (/f) reboot (/r)
|
# forced (/f) reboot (/r) in seconds (/t) # must be in this order~
|
||||||
Write-Host shutdown /r /f /t $total_wait_seconds
|
Write-Host shutdown /f /r /t $total_wait_seconds
|
||||||
Write-Host "`nSCHEDULED REBOOT IN $total_wait_seconds seconds`n"
|
Write-Host "`nSCHEDULED REBOOT IN $total_wait_seconds seconds`n"
|
||||||
pause # pause for clarity in the new window
|
pause # pause for clarity in the new window
|
||||||
Reference in New Issue
Block a user