Windows 7 remote session not responding, restart remotely?

Solution 1:

you can connect to a command prompt remotely with psexec. run a command prompt as admin on your localhost, and enter:

psexec \\remotecomputername -u username -p password cmd 

psexec will connect to the remote computer and display a command prompt executing on it. then enter

shutdown -r -t 1

to reboot the machine. your psexec connection will terminate in the process.

I usually start pinging the host (with -t99 in windows) before issuing the shutdown, so I can watch it go down, and come back up.

Solution 2:

Assuming you are using the Windows Remote Desktop service included with most all windows computers, Simultaneously press the "Ctrl", "Alt", and "End" buttons. This should bring up a dialog that will give you shutdown and restart options.

Another method of doing such a thing (though I am not sure this could be completed from the logon screen) is opening up the Run prompt (via pressing the "Windows" and "R" Keys) and then entering "shutdown -f -r -t 1" into the prompt.