Automatcally deactivate RDP
Hi, Please try to use this script and see how it works. Enable or Disable Remote Desktop http://gallery.technet.microsoft.com/scriptcenter/47d8b6d8-59c3-495f-8b7f-dc0d1cd107e1 In addition, for script related questions, it is recommended to post questions in The Official Scripting Guys Forum. Hope this helps. Jeremy Wu TechNet Community Support
July 24th, 2012 8:01am

Please try to use this script and see how it works. Enable or Disable Remote Desktop http://gallery.technet.microsoft.com/scriptcenter/47d8b6d8-59c3-495f-8b7f-dc0d1cd107e1 It also does not work. The script with the RegAdd works for adding the key to the registry, but it seems that the key is ignored.
Free Windows Admin Tool Kit Click here and download it now
July 24th, 2012 12:36pm

Hi, I try to deactivate the Remote Desktop functionallity using Batch files. I use following lines: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f I've tested them on a Vista machine and there I works. On my Windows 7 machine I still can access the machine. Are there any new settings/profile policies overruling them? How can I check whats the problem?
July 24th, 2012 12:40pm

Hello, Instead of using registry, use group policies to do that: http://support.microsoft.com/kb/306300 . This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. Microsoft Student Partner 2010 / 2011 Microsoft Certified Professional Microsoft Certified Systems Administrator: Security Microsoft Certified Systems Engineer: Security Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration Microsoft Certified Technology Specialist: Windows Server 2008 Applications Infrastructure, Configuration Microsoft Certified Technology Specialist: Windows 7, Configuring Microsoft Certified Technology Specialist: Designing and Providing Volume Licensing Solutions to Large Organizations Microsoft Certified IT Professional: Enterprise Administrator Microsoft Certified IT Professional: Server Administrator Microsoft Certified Trainer
Free Windows Admin Tool Kit Click here and download it now
July 24th, 2012 1:21pm

Hello, Instead of using registry, use group policies to do that: http://support.microsoft.com/kb/306300 Hmm how do I do that from within a batch script?
July 24th, 2012 7:14pm

Hi, In my lab, the key works for me. In order to determine the issue, please test the following in your Windows 7 machine and let us know the result: 1. In Remote Settings of System Properties, set Dont allow connections to this computer. Then, check whether you can remote to it and check whether the value of the Key fDenyTSConnections is set to 0x00000001. 2. Manually change the value of the Key fDenyTSConnections to 0x00000000, check whether the setting is set to Allow connections only from computers running Remote Desktop with Network Level Authentication and if you can remote to it. 3. Check if the value of the key will be changed to 0x00000000 automatically after a reboot. If it turns out that the key is ignored, please let us know your network environment and test the issue again in Clean Boot Mode. Hope this helps. Jeremy Wu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
July 25th, 2012 4:31am

1. In Remote Settings of System Properties, set Dont allow connections to this computer. Then, check whether you can remote to it and check whether the value of the Key fDenyTSConnections is set to 0x00000001. HU, There is a little problem, the option "disable RDP" is grayed out, so I can not select it. (I'm logged in as Administrator) I can connect either the value is 1 or not. Even after a clean boot. I think there is any policy blocking this. But what?
July 26th, 2012 6:32am

Hi, Please let us know your network environment and check if other computers in the same network have the same issue. Also, please check if the group policy: Allow users to connect remotely using Remote Desktop Service under Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections is enabled. Hope this helps. Jeremy Wu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 5th, 2012 1:56am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics