Skip to content

Instantly share code, notes, and snippets.

@alastairtree
Created August 6, 2015 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alastairtree/471514b964be06686c42 to your computer and use it in GitHub Desktop.
Save alastairtree/471514b964be06686c42 to your computer and use it in GitHub Desktop.
Restart a remote machine using powershell
# 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