good nuff improvement to IM_SO_TIRED_BOSS\
This commit is contained in:
1 parent
fc19333cf5
commit
4e6ec7338d
1 file changed
+3
-1
@@ -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
|
||||
Reference in new issue
Block a user