Scripting Question

Script that edit registry and answer prompts

01/12/2015 914 views


 Have a script to edit a registry value, but prompts come up ask for user to click yes. I don't want any user interactions. please help,



Answer Summary:
0 Comments   [ + ] Show comments


Community Chosen Answer

How come you're being allowed to let scripts loose on your workstation estate and yet you do not know that REGEDIT requires the '/S' argument in order to run silently?

If this is a critical registry setting, I suggest you use a proper scripting language so that you can gauge success or failure and log the script's activity.
Answered 01/13/2015 by: VBScab
Red Belt

All Answers

Make sure you are running the script as LOCAL SYSTEM and not logged-in user. I've ran scripts with the same settings you have displayed and it worked without showing any messages or prompting for user interaction.
Answered 01/12/2015 by: h2opolo25
Red Belt

  • This of course depends on whether you are trying to update HKCU (requires running as logged-in user) or HKLM (requires running as local system)

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ