Jump to content

How to restore inheritance on a registry subkey ?


Recommended Posts

Hi

Could someone help me out with SetACL.exe syntax?

How to restore inheritance (disabled by changing key permissions with a batch file) from the parent key (Test1) : Everyone:Read, System:Full to the child key test1a ?

I tried

SetACL.exe -on "hklm\SOFTWARE\TEST\Test1\test1a" -ot reg -actn ace -ace "i:io,so;m:set"

but it returns

ERROR: AddACE: No trustee specified.

But i just want inheritance from the existing parent key, to be forwarded to the child test1a key, so if i've already set parameter i:io (inherit only) why SetACL requires parameter "trustee" too ?

Btw. even if i set trustee (n:System, or Everyone) it doesn't get back inheritance.

Does somebody know what would be the correct way to do this?

Thanks a lot in advance

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...