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-NTFSAuditInheritance is disabling Audit Inheritance. #74

Open
Niceswitches opened this issue Nov 6, 2020 · 1 comment
Open
Assignees
Labels
Question Someone has a question about feature or usability

Comments

@Niceswitches
Copy link

Niceswitches commented Nov 6, 2020

Hi
First of all great PS module.
I am trying to use your Enable-NTFSAuditInheritance cmdlet, but it doesn't seem to work.

PS C:\WINDOWS\system32> Enable-NTFSAuditInheritance "F:\Videos\Video1\Video1.1.mp4" -PassThru

Name                           AccessInheritanceEnabled AuditInheritanceEnabled
----                              ------------------------     -----------------------
Video1.1.mp4              True                                       False                   

I was searching for a while before I came across your module for a way to do this in PS and apparently this is a bug.
If this cmdlet is run against a file with Audit Inheritance on, then it will also disable it.
I was wondering if you have also experienced this?
Many thanks
NS

@raandree raandree self-assigned this Apr 20, 2021
@raandree
Copy link
Owner

Sorry for the long delay. I have just tried that and it worked as expected. Do you still experience the issue?

PS D:\> Get-NTFSInheritance -Path D:\Servers.csv

Name        AccessInheritanceEnabled AuditInheritanceEnabled
----        ------------------------ -----------------------
Servers.csv True                     False                  



PS D:\> Enable-NTFSAuditInheritance -Path D:\Servers.csv

PS D:\> Get-NTFSInheritance -Path D:\Servers.csv

Name        AccessInheritanceEnabled AuditInheritanceEnabled
----        ------------------------ -----------------------
Servers.csv True                     True                 

@raandree raandree added the Question Someone has a question about feature or usability label Apr 20, 2021
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
Projects
None yet
Development

No branches or pull requests

2 participants