registry script pass thru popup confirmation

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?
Who is Participating?
johnb6767Connect With a Mentor Commented:
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......
Neil RussellTechnical Development LeadCommented:
regedit.exe /s filename.reg
icecom4Connect With a Mentor Author Commented:
regedit.exe /s stops the popups but does it auto answer yes?
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

It auto imports it silently..... (no points, just answering for Neilsr)....
icecom4Author Commented:
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?
icecom4Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.