Created
August 6, 2015 14:49
-
-
Save alastairtree/471514b964be06686c42 to your computer and use it in GitHub Desktop.
Restart a remote machine using powershell
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
# at an PS> prompt with sufficient admin credentials | |
Restart-Computer ServerName -force | |
# or | |
# Restart-Computer "ServerName1", "ServerName2" -force | |
# More info https://mcpmag.com/articles/2012/04/10/how-to-restart-computers-remotely-via-powershell.aspx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment