auditpol command builder
Choose what each subcategory of the Windows advanced audit policy should log, or start from one of Microsoft's recommendations, and copy the auditpol commands. The commands name each subcategory by its GUID, which auditpol takes in place of the name.
Run as an administrator. The first line saves the policy as it is now.
Then check, and if need be put the saved policy back:
How the commands work
auditpol /set /subcategory:"{GUID}" /success:enable /failure:disable sets one subcategory of the system audit policy. auditpol takes a subcategory's name in quotation marks or its GUID; this page uses GUIDs. A command that names only /success leaves failure auditing as it was, and the other way round, so each line here names both. auditpol /backup /file:... saves the system and per-user policy and the auditing options to a CSV file, and auditpol /restore /file:... loads such a file back. auditpol /get /category:* shows the whole system policy, and auditpol /list /subcategory:* /v lists the subcategories with their GUIDs as the computer knows them.
The same settings are in Group Policy, under Computer Configuration, Windows Settings, Security Settings, Advanced Audit Policy Configuration, System Audit Policies, and in the Local Security Policy snap-in (secpol.msc).
Microsoft's recommendations
The presets above come from these tables of Microsoft's system audit policy recommendations: what Windows logs by default, a baseline for computers with average security needs, and a stronger setting to help detect compromise. A blank cell means no recommendation, and the preset leaves that subcategory as it is. Settings for domain controllers apply only when the box for a domain controller is ticked; the rows marked If needed and the one with a single value are not applied. Microsoft asks that any policy be reviewed and tested before it goes into production. Since Windows 10 version 1809, Logon is audited for success and failure by default; before, only for success.
Windows client editions
| Subcategory | Windows default | Baseline | Stronger |
|---|---|---|---|
| Account Logon | |||
| Credential Validation | No auditing | Success | Success and failure |
| Kerberos Authentication Service | Success and failure | ||
| Kerberos Service Ticket Operations | Success and failure | ||
| Other Account Logon Events | Success and failure | ||
| Account Management | |||
| Application Group Management | |||
| Computer Account Management | Success | Success and failure | |
| Distribution Group Management | |||
| Other Account Management Events | Success | Success and failure | |
| Security Group Management | Success | Success and failure | |
| User Account Management | Success | Success | Success and failure |
| Detailed Tracking | |||
| DPAPI Activity | Success and failure | ||
| Process Creation | Success | Success and failure | |
| Process Termination | |||
| RPC Events | |||
| DS Access | |||
| Detailed Directory Service Replication | |||
| Directory Service Access | |||
| Directory Service Changes | |||
| Directory Service Replication | |||
| Logon/Logoff | |||
| Account Lockout | Success | Success | |
| IPsec Extended Mode | |||
| IPsec Main Mode | If needed | ||
| IPsec Quick Mode | |||
| Logoff | Success | Success | Success |
| Logon | Success and failure | Success and failure | Success and failure |
| Network Policy Server | Success and failure | ||
| Other Logon/Logoff | |||
| Special Logon | Success | Success | Success and failure |
| User/Device Claims | |||
| Object Access | |||
| Application Generated | |||
| Central Access Policy Staging | |||
| Certification Services | |||
| Detailed File Share | |||
| File Share | |||
| File System | |||
| Filtering Platform Connection | |||
| Filtering Platform Packet Drop | |||
| Handle Manipulation | |||
| Kernel Object | |||
| Other Object Access | |||
| Registry | |||
| Removable Storage | |||
| SAM | |||
| Policy Change | |||
| Authentication Policy Change | Success | Success | Success and failure |
| Authorization Policy Change | |||
| Filtering Platform Policy Change | |||
| MPSSVC Rule-Level Policy Change | Yes (one value only) | ||
| Other Policy Change Events | |||
| Audit Policy Change | Success | Success and failure | Success and failure |
| Privilege Use | |||
| Non Sensitive Privilege Use | |||
| Other Privilege Use Events | |||
| Sensitive Privilege Use | |||
| System | |||
| IPsec Driver | Success and failure | Success and failure | |
| Other System Events | Success and failure | ||
| Security State Change | Success | Success and failure | Success and failure |
| Security System Extension | Success and failure | Success and failure | |
| System Integrity | Success and failure | Success and failure | Success and failure |
Windows Server
| Subcategory | Windows default | Baseline | Stronger |
|---|---|---|---|
| Account Logon | |||
| Credential Validation | No auditing | Success and failure | Success and failure |
| Kerberos Authentication Service | Success and failure | ||
| Kerberos Service Ticket Operations | Success and failure | ||
| Other Account Logon Events | Success and failure | ||
| Account Management | |||
| Application Group Management | |||
| Computer Account Management | Success; failure on domain controllers | Success and failure | |
| Distribution Group Management | |||
| Other Account Management Events | Success and failure | Success and failure | |
| Security Group Management | Success and failure | Success and failure | |
| User Account Management | Success | Success and failure | Success and failure |
| Detailed Tracking | |||
| DPAPI Activity | Success and failure | ||
| Process Creation | Success | Success and failure | |
| Process Termination | |||
| RPC Events | |||
| DS Access | |||
| Detailed Directory Service Replication | |||
| Directory Service Access | Success and failure on domain controllers | Success and failure on domain controllers | |
| Directory Service Changes | Success and failure on domain controllers | Success and failure on domain controllers | |
| Directory Service Replication | |||
| Logon/Logoff | |||
| Account Lockout | Success | Success | |
| IPsec Extended Mode | |||
| IPsec Main Mode | If needed | ||
| IPsec Quick Mode | |||
| Logoff | Success | Success | Success |
| Logon | Success and failure | Success and failure | Success and failure |
| Network Policy Server | Success and failure | ||
| Other Logon/Logoff | Success and failure | ||
| Special Logon | Success | Success | Success and failure |
| User/Device Claims | |||
| Object Access | |||
| Application Generated | |||
| Central Access Policy Staging | |||
| Certification Services | |||
| Detailed File Share | |||
| File Share | |||
| File System | |||
| Filtering Platform Connection | |||
| Filtering Platform Packet Drop | |||
| Handle Manipulation | |||
| Kernel Object | |||
| Other Object Access | |||
| Registry | |||
| Removable Storage | |||
| SAM | |||
| Policy Change | |||
| Authentication Policy Change | Success | Success | Success and failure |
| Authorization Policy Change | |||
| Filtering Platform Policy Change | |||
| MPSSVC Rule-Level Policy Change | Yes (one value only) | ||
| Other Policy Change Events | |||
| Audit Policy Change | Success | Success and failure | Success and failure |
| Privilege Use | |||
| Non Sensitive Privilege Use | |||
| Other Privilege Use Events | |||
| Sensitive Privilege Use | |||
| System | |||
| IPsec Driver | Success and failure | Success and failure | |
| Other System Events | Success and failure | ||
| Security State Change | Success | Success and failure | Success and failure |
| Security System Extension | Success and failure | Success and failure | |
| System Integrity | Success and failure | Success and failure | Success and failure |
Categories
/category: takes a category's name or GUID and sets every subcategory in it.
| Category | GUID |
|---|---|
| Account Logon | {69979850-797a-11d9-bed3-505054503030} |
| Account Management | {6997984e-797a-11d9-bed3-505054503030} |
| Detailed Tracking | {6997984c-797a-11d9-bed3-505054503030} |
| DS Access | {6997984f-797a-11d9-bed3-505054503030} |
| Logon/Logoff | {69979849-797a-11d9-bed3-505054503030} |
| Object Access | {6997984a-797a-11d9-bed3-505054503030} |
| Policy Change | {6997984d-797a-11d9-bed3-505054503030} |
| Privilege Use | {6997984b-797a-11d9-bed3-505054503030} |
| System | {69979848-797a-11d9-bed3-505054503030} |
Sources
- The subcategory GUIDs and names: Microsoft's specification MS-GPAC, section 2.2.1.2 Subcategory and SubcategoryGUID (58 subcategories, read on 24 Nov 2026), checked against the GUIDs of Microsoft's Auditing Constants page (win32 at commit bc82a65), which lists 52 of them and the nine category GUIDs.
- The categories, the events each subcategory logs and Token Right Adjustment: Microsoft's Advanced Audit Policy Configuration page; the recommendations: Microsoft's System audit policy recommendations; the commands: Microsoft's auditpol references (all windowsserverdocs at commit b640f2c). Microsoft's documentation is used under the Creative Commons Attribution 4.0 International licence (creativecommons.org/
licenses/ by/ 4.0/).
More Logs tools
-
Access log checker
Find the exploit requests in a web server log and the addresses that sent them.
-
Windows security event ID lookup
Look up 4740, 4625, 4728, 1102 or any other Security log event: its meaning, audit setting and criticality.
-
Event log query builder
Pick a log, event IDs, levels and a time span: the XPath, the custom view XML and the Get-WinEvent command.
-
Sysmon event ID lookup
Every Sysmon event ID with its filter tag and fields, and a reader for an event pasted from Event Viewer.
-
Windows Firewall log reader
Open pfirewall.log: its lines as a table, the drops by port and address, and the commands that turn logging on.
-
Schannel and TLS alert code lookup
Read Schannel events 36887 and 36888 and TLS alerts such as 40, 46, 48 and 70.
-
IIS status codes and log line reader
Look up 500.19, 403.14 or any other IIS status and substatus, or read W3C log lines field by field.
-
Syslog PRI calculator
Read the facility and severity in a syslog priority such as <134>, or build one from local0 to local7.
-
Timestamp converter
Unix seconds and milliseconds, FILETIME, Chrome, Apple, Excel and MS-DOS dates to a date, and back.
-
Scanner watch
What attack tools ask of this site's web server: the addresses, the paths and the networks, rebuilt each day.