okie now its proper ig lmao
This commit is contained in:
1 parent
4e6ec7338d
commit
46dc7e10b0
1 file changed
+1
@@ -19,6 +19,7 @@ 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 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 {
|
Start-Job -ScriptBlock {
|
||||||
|
# the $using: method lets me adjusst the scope of $RebootTime and get it in this script block
|
||||||
$RebootTime = $using:RebootTime
|
$RebootTime = $using:RebootTime
|
||||||
|
|
||||||
# add the presentation framework in
|
# add the presentation framework in
|
||||||
|
|||||||
Reference in new issue
Block a user