Skip to content

Commit

Permalink
Fixing reboot script and timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
silversword411 committed May 23, 2024
1 parent c426a5a commit 79af8f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion community_scripts.json
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@
"supported_platforms": [
"windows"
],
"default_timeout": 30
"default_timeout": 86400
},
{
"guid": "f396dae2-c768-45c5-bd6c-176e56ed3614",
Expand Down
5 changes: 3 additions & 2 deletions scripts/Win_Reboot.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#
.SYNOPSIS
Restarts the computer with an optional wait time (in seconds) before restarting.
Reboots/Restarts the computer with an optional wait time before restarting. Max wait 24hrs
.DESCRIPTION
This script restarts the computer forcefully.
Expand All @@ -21,7 +21,8 @@ param(
)

if ($Wait) {
Restart-Computer -Force -Delay $Wait
Sleep $Wait
Restart-Computer -Force
}
else {
Restart-Computer -Force
Expand Down

0 comments on commit 79af8f0

Please sign in to comment.