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,
0 Comments
[ + ] Show comments
Answers (2)
Answer Summary:
Please log in to answer
Posted by:
anonymous_9363
9 years ago
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.
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
10 years ago
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