![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I'm trying to get all audit rules for one file like so: Dim fi As New FileInfo("C:\HostMonitorLog.txt") Dim fs As New FileSecurity Dim typeToGet As Type fs = fi.GetAccessControl() typeToGet = Type.GetType("System.Security.Principal.NTAccount" ) For Each rule As FileSystemAuditRule In fs.GetAuditRules(True, True, typeToGet) Debug.Print(rule.IdentityReference.Value) Next However GetAuditRules is returning an empty collection. What am I missing? I do have auditing enabled via my local security policy and I am admin on the box. Thanks, Dan |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |