Created
September 20, 2016 21:36
-
-
Save bobfrankly/5762dc6186103dadef55d1d420177245 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$minutes = Get-Random -Minimum 0 -Maximum 59 | |
$minutes | |
$restartTime = Get-Date 1:$minutes #adjust hour here | |
while ((get-date) -lt $restartTime){ Start-Sleep -s 60} | |
write-host Beginning Restart | |
#Restart-Computer -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment