Notice in my title I say "REALLY" shutdown or restart, that's because every source I could find on how to do this never actually gave me an answer. They would basically be telling me how to shutdown/restart using remote desktop, as if I didn't know how to do this myself.
AFTER REMOTE DESKTOPING IN PRESS CTRL+ALT+END TO BRING UP SHUTDOWN MENU...... NOW GO READ ABOUT HOW TO COPY AND PASTE WITHOUT RIGHT CLICKING!!111
Anyway I needed to find a way to force a computer to restart without a GUI because my explorer.exe had froze on my remote machine and I couldn't open any windows or prompts. I couldn't even get CMD to open , all of this was using remote desktop. However I noticed the "shutdown" command for windows had a "/m" option which could be used for remote machines. So this is how I was able to force a restart on my frozen remote machine.
1. Before even attempting this you MUST know the administrative account and password on the remote machine (If you don't know it go back to Google......)
2. Establish admin rights to the remote machine, to do this simply just open a windows explorer window, and enter in your remote machine's hostname or ip address. A login prompt will open and here is where you will enter the admin username/password for the remote machine
3. Open the command prompt (cmd.exe) enter this command (this will force a restart)
shutdown /r /f /m \\myremotemachinename
To see what the options mean you can view this link here That's all there is to it, be sure you do these steps in order because trying to run the shutdown command before establishing admin rights will cause an access denied error.
Comments