Audit Rules
- From: "dan artuso" <dartuso@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 4 Dec 2007 15:22:49 -0500
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
.
- Follow-Ups:
- Re: Audit Rules
- From: dan artuso
- Re: Audit Rules
- Prev by Date: Re: C# to vb.net
- Next by Date: Re: Securing app.config / web.config
- Previous by thread: Re: C# to vb.net
- Next by thread: Re: Audit Rules
- Index(es):
Relevant Pages
|