For various reasons, I need to reboot a Windows 7 machine when I’m connected with a Remote Desktop Protocol session. I could probably establish a terminal session to avoid this, or I could open a command prompt (click Windows button and search for “cmd) and then execute the following command to remotely restart the machine:
shutdown -r
That’s all, your remote machine should reboot within one minute.