registry script pass thru popup confirmation

Posted on 2011-10-26
Medium Priority
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
  • 3
  • 2
LVL 37

Expert Comment

by:Neil Russell
ID: 37032368
regedit.exe /s filename.reg
LVL 66

Accepted Solution

johnb6767 earned 2000 total points
ID: 37032415
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

icecom4 earned 0 total points
ID: 37033340
regedit.exe /s stops the popups but does it auto answer yes?
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 66

Expert Comment

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

Author Comment

ID: 37046586
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

ID: 37098937

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
IF you are either unfamiliar with rootkits, or want to know more about them, read on ....
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

850 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