registry script pass thru popup confirmation

I have this registry entry script to enable RDP...

REGEDIT4
[<dir1>]
HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server
fDenyTSConnections = 0
[<dir2>]
etc.

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?
icecom4Asked:
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......
0
 
Neil RussellTechnical Development LeadCommented:
regedit.exe /s filename.reg
0
 
icecom4Connect With a Mentor Author Commented:
regedit.exe /s stops the popups but does it auto answer yes?
0
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.

 
johnb6767Commented:
It auto imports it silently..... (no points, just answering for Neilsr)....
0
 
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?
0
 
icecom4Author Commented:
thanks!
0
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.