registry script pass thru popup confirmation

Posted on 2011-10-26
Last Modified: 2012-05-12
I have this registry entry script to enable RDP...

HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server
fDenyTSConnections = 0

but it asks the user for confirmation to modify registry, then another one after saying that it did modify the registry.  How can I make both of these go away?  I have admin access to the machine if needed.  

Also, will the above script work on windows 7 RDP?
Question by:icecom4
    LVL 37

    Expert Comment

    regedit.exe /s filename.reg
    LVL 66

    Accepted Solution

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

    FYI, the above should still work as well on Windows 7, if I remember correctly. Might be useful depending on how you are calling the script.... If you are already in an elevated CMD prompt, you see nothing except a confirmation of completion......

    Assisted Solution

    regedit.exe /s stops the popups but does it auto answer yes?
    LVL 66

    Expert Comment

    It auto imports it silently..... (no points, just answering for Neilsr)....

    Author Comment

    ok the above vb script seems to work on windows XP, but I tried it on a windows 7 machine with no luck.  

    Any ideas?

    Author Closing Comment


    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
    The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now