/build/static/layout/Breadcrumb_cap_w.png

Changing a registry key

I am trying to use an SCCM package to change a registry key so I can change the location the machine looks for particular files. I have tried running this by making a package with the reg key and a small script to run the regedit command. I have tried to use a TS to run a command line to run regedit and do the same. BOth come back on the log showing successful, but neither time is the registry key changed. It remained the same as it was before I ran the push.

So, what am i missing? I tried a search, but didnt see anything really matching my issue.

0 Comments   [ + ] Show comments

Answers (3)

Posted by: kardock 12 years ago
Second Degree Green Belt
0
is the key located under HKCU? sccm runs in the system account, it's not the same HKCU has the logged in user.
Posted by: jmaclaurin 12 years ago
Third Degree Blue Belt
0
What kardock said and also the location may be different if the target OS is x64. Also, just because the script executed and exited with a 0 return code, doesn't mean that it was successful. If you haven't included any error checking in your script, you may want to think about adding it as well as logging.
Posted by: nkennelly 12 years ago
Senior Yellow Belt
0
It is changing an entry in the HKLM area.
I will look into adding the logging/error checking in my script though.

THank you for the ideas and direction. I appreciate it.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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