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

AddAudit recursively #39

Open
hpadman opened this issue Dec 1, 2018 · 1 comment
Open

AddAudit recursively #39

hpadman opened this issue Dec 1, 2018 · 1 comment
Assignees
Labels
Question Someone has a question about feature or usability Solution Delivered A solution has been provided

Comments

@hpadman
Copy link

hpadman commented Dec 1, 2018

Thanks for great module. We have ~700 folders in parent folder, half of them had correct auditing permissions. For remaining half, thought that using 'addNTFSaudit' command for every ~350 folder. Each of the folders have data, I thought it will be applied recursively to each/every file and folder. Is there any way to propogate auditing perms OR I need to iterate through loop for every file/folder?

@raandree raandree self-assigned this Jul 25, 2019
@raandree raandree added the Question Someone has a question about feature or usability label Jul 25, 2019
@raandree
Copy link
Owner

Sorry for the very late reply. Actually, the auditing settings should be inherited and not set explicitly. So you can use Clear-NTFSAudit to get rid of the current settings and then use Enable-NTFSAuditInheritance to make sure the folder inherits from the parent.

Add-NTFSAudit has to be only used on the parent once then.

@raandree raandree added the Solution Delivered A solution has been provided label Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Someone has a question about feature or usability Solution Delivered A solution has been provided
Projects
None yet
Development

No branches or pull requests

2 participants