auditpol get
Retrieves the system policy, per-user policy, auditing options, and audit security descriptor object. Windows commands reference
On Windows
Windows
Retrieves the system policy, per-user policy, auditing options, and audit security descriptor object. To perform get operations on the per-user and system policies, you must have Read permission for that object set in the security descriptor. You can also perform get operations if you have the Manage auditing and security log (SeSecurityPrivilege) user right. However, this right allows additional access that is not necessary to perform the overall get operations.
auditpol /get[/user[:<username>|<{sid}>]][/category:*|<name>|<{guid}>[,:<name|<{guid}> ]][/subcategory:*|<name>|<{guid}>[,:<name|<{guid}> ]][/option:<option name>][/sd][/r]
To retrieve the per-user audit policy for the Guest account and display the output for the System, detailed Tracking, and Object Access categories, type
auditpol /get /user:{S-1-5-21-1443922412-3030960370-963420232-51} /category:System,detailed Tracking,Object AccessIdentify/getDisplays the current audit policy. Windows commands reference/userDisplays the security principal for whom the per-user audit policy is queried. Windows commands reference/categoryOne or more audit categories specified by globally unique identifier (GUID) or name. Windows commands referenceTo retrieve the per-user audit policy for a category and a particular subcategory, which reports the inclusive and exclusive settings for that subcategory under the System category for the Guest account, type
auditpol /get /user:guest /category:System /subcategory:{0ccee921a-69ae-11d9-bed3-505054503030}Identify/getDisplays the current audit policy. Windows commands reference/userDisplays the security principal for whom the per-user audit policy is queried. Windows commands reference/categoryOne or more audit categories specified by globally unique identifier (GUID) or name. Windows commands reference/subcategoryOne or more audit subcategories specified by GUID or name. Windows commands referenceTo display the output in report format and include the computer name, policy target, subcategory, subcategory GUID, inclusion settings, and exclusion settings, type
auditpol /get /user:guest /category:detailed Tracking /rIdentify/getDisplays the current audit policy. Windows commands reference/userDisplays the security principal for whom the per-user audit policy is queried. Windows commands reference/categoryOne or more audit categories specified by globally unique identifier (GUID) or name. Windows commands reference/rDisplays the output in report format, comma-separated value (CSV). Windows commands referenceTo retrieve the policy for the System category and subcategories, which reports the category and subcategory policy settings for the system audit policy, type
auditpol /get /category:System /subcategory:{0ccee921a-69ae-11d9-bed3-505054503030}Identify/getDisplays the current audit policy. Windows commands reference/categoryOne or more audit categories specified by globally unique identifier (GUID) or name. Windows commands reference/subcategoryOne or more audit subcategories specified by GUID or name. Windows commands referenceTo retrieve the policy for the detailed Tracking category and subcategories in report format and include the computer name, policy target, subcategory, subcategory GUID, inclusion settings, and exclusion settings, type
auditpol /get /category:detailed Tracking /rIdentify/getDisplays the current audit policy. Windows commands reference/categoryOne or more audit categories specified by globally unique identifier (GUID) or name. Windows commands reference/rDisplays the output in report format, comma-separated value (CSV). Windows commands referenceTo retrieve the policy for two categories with the categories specified as GUIDs, which reports all the audit policy settings of all the subcategories under two categories, type
auditpol /get /category:{69979849-797a-11d9-bed3-505054503030},{69997984a-797a-11d9-bed3-505054503030} subcategory:{0ccee921a-69ae-11d9-bed3-505054503030}Identify/getDisplays the current audit policy. Windows commands reference/categoryOne or more audit categories specified by globally unique identifier (GUID) or name. Windows commands referenceTo retrieve the state, either enabled or disabled, of the AuditBaseObjects option, type
auditpol /get /option:AuditBaseObjectsIdentify/getDisplays the current audit policy. Windows commands reference/optionRetrieves the existing policy for the CrashOnAuditFail, FullprivilegeAuditing, AuditBaseObjects, or AuditBasedirectories options. Windows commands referenceWhere the available options are AuditBaseObjects, AuditBaseOperations, and FullprivilegeAuditing. To retrieve the state enabled, disabled, or 2 of the CrashOnAuditFail option, type
auditpol /get /option:CrashOnAuditFail /rIdentify/getDisplays the current audit policy. Windows commands reference/optionRetrieves the existing policy for the CrashOnAuditFail, FullprivilegeAuditing, AuditBaseObjects, or AuditBasedirectories options. Windows commands reference/rDisplays the output in report format, comma-separated value (CSV). Windows commands reference/userDisplays the security principal for whom the per-user audit policy is queried. Either the /category or /subcategory parameter must be specified. The user may be specified as a security identifier (SID) or name. If no user account is specified, then the system audit policy is queried./categoryOne or more audit categories specified by globally unique identifier (GUID) or name. An asterisk (*) may be used to indicate that all audit categories should be queried./subcategoryOne or more audit subcategories specified by GUID or name./sdRetrieves the security descriptor used to delegate access to the audit policy./optionRetrieves the existing policy for the CrashOnAuditFail, FullprivilegeAuditing, AuditBaseObjects, or AuditBasedirectories options./rDisplays the output in report format, comma-separated value (CSV)./?Displays help at the command prompt.