/build/static/layout/Breadcrumb_cap_w.png

Resetting Registry ACL inheritance using SetACL

Link

I was running into the problem of some Installer modifying my Registry's ACL. It turned of ACL inheritance for some key, which was unwanted in my Situation.

I ended up needing to reset the HKLM\Software\xyz key (including all subkeys) to inherit it's permissions from HKLM\Software again.

The following did the trick for me:

SetACL -on "hklm\Software\xyz" -ot reg -actn setprot -op "dacl:np" -actn clear -clr "dacl" -actn rstchldrn -rst "dacl"

This commands recursively clears all non inherited access permissions (=dacl) and turns on inheritance for all Keys and Values in xyz and below.

System Audit (sacl) was not touched.

SetACL is a free tool under the GPL license and very welll documented on the project website linked here.


Comments

  • Excellent post, this is a cool little script to restore inherit rights when adding reg keys. - Timanator 12 years ago
This post is locked

Don't be a Stranger!

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

Sign up! or login

Share

 
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