If you're in the network you should be able to use PSEXEC
. See here.
Download PSTOOLS from Microsoft. Unzip to an easy to access location. Open a CMD
command prompt, navigate to the PSTOOLS
location. Execute:
psexec \\machinename reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0
Machinename should be replaced with the computername, ideally you already have admin rights to this PC, for example you run this as the domain administrator. Otherwise you have to supply credentials using -u and -p options.
If you still can’t connect this is most likely the windows firewall.
Execute:
psexec \\machinename netsh firewall set service remotedesktop enable
psexec \\machinename netsh firewall set service remoteadmin enable
This is correct. What's annoying is when file/printer sharing aren't enabled on the firewall and psexec.exe won't connect as a result. Then you are stuck. – Mark Allen – 2013-11-06T20:02:54.803