How to enable audit of files/folders access from .NET code?

From: Bamse (bdaniel7_at_yahoo.com)
Date: 04/16/04


Date: Fri, 16 Apr 2004 10:11:17 +0300

Hello,

i need to enable the audit of file access from c# code
i know that this can be done easily from Local Security Policy MMC,
therefore the API's required are already on the machine;

 i know that in Active Directory Resource Kit are some libs among which
ADSSecurity.dll is used to set security properties for objects like
printers, files, etc, but haven't found something to enable files access
audit.

how can that be done from managed code (preferable) or c++/c++.NET otherwize
?

Thank you,
Daniel



Relevant Pages

  • audit access to one directory only
    ... I have auditing on for file access for all users at present but I wish to ... concentrate this audit to a particular directory on the system. ...
    (comp.unix.aix)
  • Re: Trying to AUDIT file creation failure
    ... Audit will only work if it is a privilege issue. ... FILE access: ... Failure: read,write,execute,delete,control,create ... Security alarm and security audit on PHOBOS, ...
    (comp.os.vms)
  • Auditing
    ... to audit my 2k servers. ... By audit, I mean log file access (to a specified ... experience the entries it creates in the event log are horrendous to make ...
    (microsoft.public.windows.server.general)
  • Re: Trying to AUDIT file creation failure
    ... Audit will only work if it is a privilege issue. ... example, audit will not trigger. ... FILE access: ... Failure: read,write,execute,delete,control,create ...
    (comp.os.vms)
  • Re: Visual Studio Remote Debugging:
    ... settings to "local security policy". ... > left of the Local Policies, and you see the Audit Policy entry. ... > If I use Ctrl+F5 to run the Webapplication, I will see the account logon ... > the machine on the remote machine's eventlog. ...
    (microsoft.public.dotnet.languages.vb)