/build/static/layout/Breadcrumb_cap_w.png

Script that edit registry and answer prompts

Hello,

 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,

Gwkblf.jpeg

 


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: anonymous_9363 9 years ago
Red Belt
2
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.
Posted by: h2opolo25 9 years ago
Red Belt
1
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.

Comments:
  • 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) - EdT 9 years ago
 
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