1. Open registry editor (regedt32) and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server. Registry editor can also connect to remote computers.
2. Double-click fDenyTSConnections.
3. Change the value of this setting to 0 to enable Remote Desktop or 1 to disable it, and click OK.
4. Close the registry editor, and reboot the computer for the change to take effect. Use the shutdown command to reboot remotely.