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

enable inheritance on the newly created directory #6

Open
mouki9 opened this issue Apr 18, 2024 · 0 comments
Open

enable inheritance on the newly created directory #6

mouki9 opened this issue Apr 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mouki9
Copy link

mouki9 commented Apr 18, 2024

The following lines of code should be added in the script, right before we add the actual accessrule

Add on line 117 in script postAdAction.create.SetDirectoryPermissions.Set-ACL.ps1
#Enable Inheritance
$acl.SetAccessRuleProtection($False, $True)
Set-Acl -Path $directory.path -AclObject $acl

@JeroenBL JeroenBL added the enhancement New feature or request label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants