Skip to content

Commit

Permalink
Fix reboot script
Browse files Browse the repository at this point in the history
  • Loading branch information
silversword411 committed May 29, 2024
1 parent 79af8f0 commit 83b637b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/Win_Reboot.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@
Waits for 60 seconds and then restarts the computer.
.NOTES
v1.0 5/17/2024 Created by silversword411
v1.0 5/17/2024 Created by silversword411 and dinger1986
#>

param(
[int]$Wait
)

if ($Wait) {
Sleep $Wait
Restart-Computer -Force
shutdown -r -t $Wait
}
else {
Restart-Computer -Force
Expand Down

0 comments on commit 83b637b

Please sign in to comment.