Audit Policy

You can use the Audit policy related properties and methods to set options such as turning auditing on or off, auditing accesses to objects, and so on.

Note: Some of the following methods require the name of a privilege. These are described in IADsNTPolicy Privileges.

Some Audit policy related properties require an Auditing Value to be used.

Property/Method

Description

AuditAccountManagement

Gets or sets Auditing options for User and Group management

AuditDetailedTracking

Gets or sets Auditing options for Detailed Process Tracking

AuditingEnabled

Gets or sets whether auditing is enabled or not

AuditLogonLogoff

Gets or sets Auditing options for Logon and Logoff

AuditLogPercentFull

Gets a percentage of how full the Audit Log is

AuditObjectAccess

Gets or sets Auditing options for File and Object Access

AuditPolicyChange

Gets or sets Auditing options for Security Policy Changes

AuditPrivilegeUse

Gets or sets Auditing options for use of User Rights

AuditRetentionPeriod

Controls the number of days for which audit log records are retained

AuditSystem

Controls whether auditing should occur for restart, shutdown and system events

LogFullShutdownInProgress

Gets whether system shutdown has been initiated due to audit log getting full

MaximumLogSize

Gets / Sets the maximum size of audit log

ShutdownOnLogFull

Gets or sets whether the system should shutdown when the audit log becomes full

TimeToShutdown

Gets the time left after which the shutdown becomes irreversible

 

See Also