http://www.sqlservercentral.com/blogs/powersql-by-prashanth-jayaram/2013/04/15/power-shell-or-windows-rebooting-of-servers-local-or-remote-computers/

Printed 2014/08/01 10:01AM

Power Shell or Windows – Rebooting of servers local or remote computers

By Prashanth Jayaram, 2013/04/15

Rebooting of servers local or remote Using PowerShell and Windows

Powershell command

Start->Run->Powershell press enter

PS:\>RESTART-COMPUTER -COMPUTERNAME SERVER01, SERVER02,LOCALHOST

Windows Command

Start->Run->cmd press enter

c:\>shutdown /m \\server01 /r /f /t 02

/m \\Server A remote computer to shutdown – server01
/r Shutdown and Restart
/f Force running applications to close. This will not prompt for File-Save in any open applications. so will result in a loss of all unsaved data!!!
/t:xxx Time until system shutdown in seconds. The valid range is xxx=0-600 seconds. [default=30]



Copyright © 2002-2014 Simple Talk Publishing. All Rights Reserved. Privacy Policy. Terms of Use. Report Abuse.