Posted by: Karl Gechlik
I use remote desktop or RDC hundreds of times a day. Without being able to “remote” into my servers I would be running around non-stop. Well actually I would still be using PcAnywhere and Dameware to control my boxes. What do we do if we have a server, on the network, that you need to have remote access to and you don’t? You forgot to enable remote desktop and now you are seeing that familiar error message telling you that you do not have the rights to log on.
If you were sitting in front of the computer you could right click on my computer choose properties than navigate to the remote tab and click the little check box next to enable remote desktop. But we are not, so we will need to work a little “admin” magic by remotely editing the servers registry and then remotely rebooting it.
When the server comes back up we will have full remote desktop access to it. Let’s see how we can do this:
- First log on to another machine on your network.
- Open Regedit
- Click File –> Connect netowrk registry.
- Type in the servers name or IP address.
- Click OK
to the Hot Key Local Machine hiveon the server in questions registry
Locate the following key:
- Click on it to show its keys.
- Look through the keys for the
- Double-click on the value.
Edit the DWORDValue box and change the value data from 1 Remote Desktop will be disabled to 0 (Remote Desktop is enabled.
- We need to restart the remote machine using the command line. Launch CMD and type in this command: shutdown -m \\servername -r -t 00
That's it when the server restarts you will be able to log in to it via remote desktop.
If you are curious about the shutdown command the -m allows for you to shut down a remote machine and is followed by the computers name then – r sets the reboot option and the t 00 tells it to wait 0 seconds before it starts the reboot. If you do not specify the t 00 it will wait 30 seconds before starting the restart.
Do you have another method for getting a server accessible via remote desktop without physical access to the machine? We would love to hear about it in the comments!