Remotely enable Remote Desktop

When you need to RD into a remote PC, but that PC doesn’t have RD enabled, here’s a quick fix – BUT BE WARNED – MESSING WITH THE REGISTRY CAN CAUSE UNEXPECTED BEHAVIOR – DO SO AT YOUR OWN RISK.

First download PSTools to get the PSExec tool:

http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx

On the local PC, execute:

psexec \\COMPUTERNAME  reg add HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /f /v fDenyTSConnections /t REG_DWORD /d 0

Replace COMPUTERNAME with the name or IP address of the remote PC.

Then just do a remote restart: 

shutdown -m \\COMPUTERNAME -r

I also like to do a:

ping COMPUTERNAME -t

That will keep pinging indefinitely, so you can see when the PC restarts and comes back up.

Back to Top