how to select the remote desktop user radio button using a batch file

Answered how to select the remote desktop user radio button using a batch file

  • Sunday, March 03, 2013 12:43 AM
     
     
    my batch file adds the appropriate use to the remote desktop users group but, I still cannot rdp into the system because the radio button is set to not allow remote desktop connection. I am trying to automate the process so I can rdp into any of my computers.

All Replies

  • Sunday, March 03, 2013 2:05 AM
     
     Answered Has Code

    You will need to change the DWORD value fDenyTSConnection under HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server from 1 to 0

    In batch, it would look something like this:

    reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v "fDenyTSConnections" /t REG_DWORD /d "0" /f


    Best Regards
    Claus Codam
    Consultant, Developer
    Coretech - Blog

    • Marked As Answer by GKM-44 Sunday, March 03, 2013 4:59 PM
    •  
  • Sunday, March 03, 2013 3:08 AM
     
     

    This can all be done with Group Policy.


    ¯\_(ツ)_/¯

  • Sunday, March 03, 2013 4:58 PM
     
     

    Awesome answer

    The registry key was already set to 0 but, the radio button was still set to no allow

    I guess it was one of the switches that selects the radio button?

    Thank you very much!

  • Sunday, March 03, 2013 5:18 PM
     
     

    Awesome answer

    The registry key was already set to 0 but, the radio button was still set to no allow

    I guess it was one of the switches that selects the radio button?

    Thank you very much!


    It is necessary to turn the radio of and on once to make it work.  Be sure to check the batteries.

    ¯\_(ツ)_/¯