Categorized | Client Tips

WHS Tip: Remote Shutdown and Restart / Reboot Using Remote Desktop Connection (RDC)

Many Windows Home Server (WHS) users use their machines as remote desktop gateways. Although remote desktop connection is functionally great, one annoyance sometimes rears its ugly head, the inability to reboot or shutdown a PC through RDC. Here is a screenshot of what this looks like:

Remote Desktop menu does not include restart and shutdown

Luckily there is a simple solution. First, launch cmd.exe (you can type cmd in that search box depicted above). Next, type (without quotes) either ”shutdown -f” or “shutdown -r -f” to shutdown and reboot (restart) respectively. 

RDC Shutdown using shutdown -f

RDC Reboot using shutdown -r -f

If this is a common issue. you can always make a batch file with the above commands to give either double-click or start menu/ windows menu access to shutdown and reboot over RDC.

Update 13 March 2010: As an update to some comments saying one can just hit the Windows Security button (depicted above), the reason I did this via command line was because this is what I saw when hitting the Windows Security button:

Windows Security Button Screen via RDC

Related posts:

  1. ASoft’s AutoExit WHS Add-in: A Better Way to Remotely Shutdown and Restart Client PC’s
  2. IPMI Remote Reboot Upon Kernel Panic – Windows Server 2008 R2, Hyper-V, and WHS
  3. Intel Pro/1000 GT PCI Desktop Gigabit Adapter Quick-Review
  4. Intel Gigabit CT Desktop Ethernet Adapter PCIe x1 Quick-Review
  5. NAS and iPad Integration – Storing Files on Network Attached Storage for Remote iPad Use
  6. Tyan IPMI 2.0 Remote Management WebGUI Tour

This post was written by:

- who has written 284 posts on ServeTheHome.com.

Patrick has been running ServeTheHome since 2009 and covers a wide variety of home and small business IT topics. For his day job, Patrick is a management consultant focused in the technology industry and has worked with numerous large hardware and storage vendors in the Silicon Valley. The goal of STH is simply to help users find some information about basic server building blocks. If you have any helpful information please feel free to post on the forums.

Contact the author

12 Responses to “WHS Tip: Remote Shutdown and Restart / Reboot Using Remote Desktop Connection (RDC)”

  1. Phil says:

    Or you could click the Windows Security button just above the Log off button and select Shutdown from the buttons that appear, you also get the option of selecting Restart.

  2. Chris Miller says:

    You can do this remotely without having to go over an RDC session. You can use the psshutdown command line utility from the Windows SysInternals PsTools suite to issue the shutdown command from another PC.

    http://technet.microsoft.com/en-us/sysinternals/bb897541.aspx

  3. Troy says:

    yea, what Phil said.

  4. QQ~ says:

    I just use shutdown /m \\COMPUTERNAME /r

    This restarts the remote PC in 60 seconds. I use this to restart my download box all the time when it has issues.

  5. Mike says:

    In response to the 13 March update, your screenshot shows the options in the middle of the screen. The shutdown option is found on the bottom right corner of that screen.

  6. welchwerks says:

    I just use control alt end in windows works so much faster

    by the way i have added your site to my visit weekly group, i have enjoyed your articles and the following are techis are just as helpful

  7. Derek says:

    I’ve been using this for a while now. You should add -t 01 to your command line. -t is to set the time delay in seconds so 01 would be almost instant. (I’m impatient to have to wait 60 seconds sometimes…)

    Derek

  8. Raleighite says:

    The ctr-alt-end sequence brings up the task manager, and there is a Shutdown menu that allows you to select Restart or Shut Down.

    Kewl!

  9. szisz says:

    Pressing Alt+F4 at the empty (remote) desktop does it.

    (Discovered accidentally, by sequentially closing a lot of windows and the n+1 one is the desktop (or better the OS itself))

Trackbacks/Pingbacks

  1. [...] a keystroke combination. But there is another method using the faithful cmd.exe, which you can find here courtesy of [...]

  2. [...] few weeks ago I posted a quick guide to a command line method of shutting down a remote PC, using Remote Desktop. Today, a much better option, ASoft's AutoExit. AutoExit is a great add-in [...]

  3. [...] system.  This is an important capability and similar to either ASoft’s AutoExit or using DOS commands/ RDP for shutdown also covered previously. ServerControl Shutdown Restart [...]


Leave a Reply

Server Parts by Amazon.com

Image of TYAN S5510GM3NR LGA 1155 Intel C204 Micro ATX Intel Xeon Processor E3-1200 series, Intel Core i3-2100 series Server Motherboard TYAN S5510GM3NR
Image of Intel 3420 LGA1156 Qc MAX-32GB DDR3 Atx 2PCIE8 PCIE4 Pci Lan 2GBE Supermicro X8SIL-F
Image of Western Digital 2 TB Caviar Green SATA II Intellipower 64 MB Cache Bulk/OEM Desktop Hard Drive - WD20EARS WD Green 2TB