Tuesday, June 26, 2012

Enable remote desktop from the command line.


For some reason the regedit gui would not connect to the remote Windows 7 pc. I used my favorite tool Psexec from the command line and this worked!
reg add "hklm\system\currentcontrolset\control\terminal server" /v fDenyTSConnections /t REG_DWORD /d 0x0
This is how to verify the change.
reg query "hklm\system\currentcontrolset\control\terminal server" 
   fDenyTSConnections    REG_DWORD    0x0

No comments: