JSI Tip 0253 - Set audit Policies in batch.

Jerold Schulman

September 12, 1997

1 Min Read
ITPro Today logo

AUDITPOL.EXE from the

is a command-line program, requiring Administrative privledges, that will modify the audit policy of a local or remote computer.

Syntax: auditpol [\computer] [/enable | /disable] [/help | /?] [/category:type] [/category:type] ...

Where:

\computer is the name of a remote computer.
/enable enables audit (default).
/disable disables audit.
/category:type specifies what kind of events to audit:

category can be:
system: System events
logon: Logon/Logoff events
object: Object access
privilege: Use of privileges
policy: Security policy changes
sam: SAM changes

type can be:
success: Audit success events.
failure: Audit failure events.
all: Audit success and failure events.
none: Do not audit these events.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like