Home > Uncategorized > Restart / Shutdown Windows 7 from a Remote Desktop Session

Restart / Shutdown Windows 7 from a Remote Desktop Session

I’m constantly machine hopping at work, using remote desktop to administer or actually work on a remote machine. This usually means that every now and then I need to restart the machine, an option which is conspicuously missing from the Start menu – so here are a couple of options I usually use:

1. Run “shutdown -r -t 0″ (this basically requests a restart within time “0″, ie immediately). Luckily this doesn’t require elevation so runs smoothly. See “shutdown /?” for more options (including shutdown).

2. Click on the taskbar (away from a running app) and hit “Alt + F4″ and you’ll get a dialogue asking you what you want the machine to do – one of the options is restart!

Hit Alt+F4 on the taskbar of a remote session, and this is what you'll see

Rodney points out in the comments below that:

Alternatively, you could try “shutdown -i” for an easy to use GUI to shutdown, restart, etc a bunch of machines, remotely.

Thanks for the tip!

Categories: Uncategorized Tags:
  1. Rodney
    May 26th, 2010 at 20:16 | #1

    Hi Oren! Good to see you back blogging and keeping us all up to date with good tricks. Alternatively, you could try “shutdown -i” for an easy to use GUI to shutdown, restart, etc a bunch of machines, remotely.

    Hope things are going great for you guys! :-)

  2. June 3rd, 2010 at 18:56 | #2

    Great to see you commenting :P Thanks for the tip, I’ve added it to the post!

    (We should catch up offline!)

  1. No trackbacks yet.