Created
April 2, 2015 04:17
-
-
Save mwrock/82cbd39d3d07cb9efcd4 to your computer and use it in GitHub Desktop.
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
if(!(Test-Path "$home\test1.txt")) { | |
new-Item $home\test1.txt -value "hi1" -type file | |
write-host "reboot 1" | |
return Invoke-Reboot | |
} | |
if(!(Test-Path "$home\test2.txt")) { | |
new-Item $home\test2.txt -value "hi1" -type file | |
write-host "reboot 2" | |
return Invoke-Reboot | |
} | |
write-host "I am done" | |
del $home\test* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment