1758944792
This commit is contained in:
@@ -26,21 +26,24 @@ shutdown /a
|
|||||||
|
|
||||||
# time wasters
|
# time wasters
|
||||||
## 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:
|
## chkdsk /r C: # as admin
|
||||||
|
chkdsk /r C:
|
||||||
|
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
|
||||||
|
|
||||||
# notify user
|
# notify user
|
||||||
## Warning
|
## Warning
|
||||||
Write-Host "`nFORCING YOUR STUPID ASS OFF IN $Hours hours $Minutes minutes plus $GraceMinutes minutes grace period`n"
|
Write-Host "`nFORCING YOUR STUPID ASS OFF IN $Hours hours $Minutes minutes plus $GraceMinutes minutes grace period`n"
|
||||||
## current time
|
## current time
|
||||||
Write-Host "`n$(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 "$reboot_time | Reboot Time"
|
||||||
## send da webhookd thingggg
|
## send da webhookd thingggg
|
||||||
webhook "SCHEDULED REBOOT AT $reboot_time" true
|
webhook "FORCING OFF FROM WINDOWS AT $reboot_time" true
|
||||||
|
|
||||||
# schedule (/t) forced (/f) reboot (/r)
|
# schedule (/t) forced (/f) reboot (/r)
|
||||||
shutdown /r /f /t $total_wait_seconds
|
Write-Host shutdown /r /f /t $total_wait_seconds
|
||||||
Write-Host "SCHEDULED REBOOT IN $total_wait_seconds seconds"
|
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
|
||||||
@@ -6,7 +6,7 @@ if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdenti
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "FIXING WINDOWS FULL STYLE"
|
Write-Host "`nFIXING WINDOWS FULL STYLE`n"
|
||||||
|
|
||||||
Write-Host "ABORTING ANY SCHEDULED SHUTDOWN"
|
Write-Host "ABORTING ANY SCHEDULED SHUTDOWN"
|
||||||
shutdown /a # cmd abort scheduled shutdowns
|
shutdown /a # cmd abort scheduled shutdowns
|
||||||
@@ -26,5 +26,5 @@ chkdsk /r C: # cmd checks C drive after reboot to waste time and fix errors
|
|||||||
Write-Host "SCHEDULING WINDOWS DEFENDER OFFLINE SCAN"
|
Write-Host "SCHEDULING WINDOWS DEFENDER OFFLINE SCAN"
|
||||||
Start-MpWDOScan # powershell starts Windows Defender Offline Scan after reboot
|
Start-MpWDOScan # powershell starts Windows Defender Offline Scan after reboot
|
||||||
|
|
||||||
Write-Host "REBOOTING IN 5 MINUTES"
|
Write-Host "`nREBOOTING IN 5 MINUTES`n"
|
||||||
shutdown /r /t 300
|
shutdown /r /t 300
|
||||||
Reference in New Issue
Block a user