makingitbig
asked on
Remote reboot of Windows Desktop
On occasion, I would like to be able to reboot a desktop on my network remotely. I can log off or disconnect, but see no ready way to force a reboot/restart of the desktop.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I've yet to put in the time to see if there is an actual fix for it to be added to the Start menu, but ...
What I do ... open a command prompt and type in:
shutdown -r -t 0
-r is for reboot
-t is for the time until shutdown in seconds
Or I create a logoff batch file on the Desktop.
What I do ... open a command prompt and type in:
shutdown -r -t 0
-r is for reboot
-t is for the time until shutdown in seconds
Or I create a logoff batch file on the Desktop.
I forgot to mention that you should be able to use the "shutdown.exe" in your %SYSTEMROOT%\system32 folder.
ASKER
Thanks!
If you're wanting to reboot a machine remotely, then you'll need to specify the computer name. Personally, I tend to use the -f [force] option, which forces all apps to close immediately. This is a good option for those stubborn machines, that might occasionally get hung, especially when working remotely and no one on-site to help.
Keep in mind that the /f parameter is implied when a value greater than 0 is specified for the /t parameter. Another option, which we use as a scheduled task from time to time is psshutdown.exe.
PsShutdown
http://technet.microsoft.com/en-us/sysinternals/bb897541
Comparative Overview
http://blogs.technet.com/b/askperf/archive/2010/02/09/two-minute-drill-shutdown-exe-tsshutdn-exe-and-psshutdown-exe.aspx
Keep in mind that the /f parameter is implied when a value greater than 0 is specified for the /t parameter. Another option, which we use as a scheduled task from time to time is psshutdown.exe.
PsShutdown
http://technet.microsoft.com/en-us/sysinternals/bb897541
Comparative Overview
http://blogs.technet.com/b/askperf/archive/2010/02/09/two-minute-drill-shutdown-exe-tsshutdn-exe-and-psshutdown-exe.aspx
shutdown -m \\Computer_Name -f -r -t 000
Sorry...not quite quick enough! :-)
http://teamtutorials.com/windows-tutorials/schedule-windows-to-automatically-restart