Tuesday, February 01, 2005

Enable Remote Desktop Connections remotely

How many times have you went back to your Desk or home after installing a brand new Windows 2003 Server just to find that you forgot to enable Remote Desktop Connections? Jim McBee has found the registry key to remotely enable this –

HKLM\System\CCS\Control\Terminal Server\fDenyTSConnection

Just change it from 1 to 0 and reboot.

It's the Little Things in Life ... (Like Google or Regmon ;-)


Anonymous said...

How about doing it remotely with WMI and not requiring a reboot?

wmic /node:"Computer name (Fully Qualified)" /USER:"username" RDTOGGLE WHERE SErverName="Computer Name" CALL SetAllowTSConnections 1

Way better than registry hacking.


Stu Fox

Anonymous said...

You do not need to reboot after changing the registry key. The change doesn't take effect instantly, but within a minute or so, Remote Desktop will be accessible.

Anonymous said...

One important bit still to do. The Windows Firewall will stop you still. You need to turn off the firewall service via the Computer Management Console. Then you can get in.

Anonymous said...


Very useful information.saved my life today

Thanks to all

Sathish said...

Thanx Dennis,

great tips on this issue,solving the problem of running down to host.
I too would like to share for the windows firewall problem, one need not to turn off this.Instead, do it remotely by changing the following registry setting, this would solve the problem.
In the right pane find this,
Now modify 'Enabled' to 'Disabled'
to get rid off.
Reapeat the Same for -
- also
Thanks to everyone