/build/static/layout/Breadcrumb_cap_w.png

Adding reg key

I need to add a reg key as part of a batch file.  The script runs but they key is never created.  I think it has to do with command to add the key (regedit /s test.reg) needing to be done as admin.  Any recommendations on how I can accomplish this?


0 Comments   [ + ] Show comments

Answers (1)

Posted by: TheITNooB 3 years ago
Orange Belt
0

You might need to run the command as:

reg import test.reg

Another way of doing it outside of the bat file would be within the kace script as a task with the reg file uploaded as a dependency or within the zip. See screenshot below from one of my old scripts as an example

MjtKOmAAAAAElFTkSuQmCC

 
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