Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate ACE return by Get-ACL #21

Closed
itpro-tips opened this issue Jul 27, 2019 · 1 comment
Closed

Duplicate ACE return by Get-ACL #21

itpro-tips opened this issue Jul 27, 2019 · 1 comment

Comments

@itpro-tips
Copy link

Hello,
In the template CSV, I found several ACE with the same information. For example for adminsdholder : BUILTIN\Pre-Windows 2000 Compatible Access has the same permission (Generic Read - All)

I get the same information with get-ACL.
Any idea why many ACE are duplicated with Get-ACL (and in the templates too, but I suppose is is related to Get-ACL output command used to generate your templates).

Thanks

@canix1
Copy link
Owner

canix1 commented Oct 4, 2019

Hello

Short answer: The ACE's set at initial build of Active Directory is set in the wrong manner.

When the Active Directory is built these ACE's is set from an LDF-file. When this is done it bypasses the normal SetEntriesACL function, which would have done filtering and merging of incorrect/duplicate ACE's.

The first "edit" of the ACL will trigger the SetEntriesACL function and it will correct incorrect ACE's (if it can) and you will see a different ACL even though you just add a new entry.

The CSV file is a export of a pristine installation that's way it has the same duplicate, but since the "get" function does not understand some of the incorrect ACE's it will export a modified version of them.

@canix1 canix1 closed this as completed Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant