good nuff improvement to IM_SO_TIRED_BOSS\

This commit is contained in:
2025-12-12 21:51:27 -07:00
parent fc19333cf5
commit 4e6ec7338d
+3 -1
View File
@@ -19,6 +19,8 @@ Write-Host "`nREBOOTING AT $RebootTime`n"
# Start-Job to fork the script block to background so it can proceed with the timer/shutdown even if no interaction with alert box
Start-Job -ScriptBlock {
$RebootTime = $using:RebootTime
# add the presentation framework in
Add-Type -AssemblyName PresentationFramework
@@ -30,4 +32,4 @@ Start-Job -ScriptBlock {
Start-Sleep -Seconds $WaitSeconds
# Force reboot with no warning
# Restart-Computer -Force
Restart-Computer -Force