Last active
August 29, 2015 14:23
-
-
Save ramarnat/c4b2fed5a5a4c346942d to your computer and use it in GitHub Desktop.
test_reboot.ps1
This file contains hidden or 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
| shutdown /r /t 1 /c "testing boxstarter reboot" | |
| if (Test-PendingReboot) { | |
| Write-BoxstarterMessage "System Shutdown not in progress" -Verbose | |
| } | |
| else { | |
| Write-BoxstarterMessage "System Shutdown in progress" -Verbose | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment