Created
July 11, 2019 09:53
-
-
Save bityob/17a4b583434460f57ed9a363e3dc4a75 to your computer and use it in GitHub Desktop.
Restart-Machine PS Script
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
$arguments=$args[0] | |
$command="Restart-Computer $arguments" | |
Write-Host "Command: '$command'" | |
iex $command | |
Write-Host "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment