Listing and changing Windows audits from command line

Quickly list and manipulate audit settings from command line:

auditpol /get /category:*

Lists all audit settings.

auditpol /set /category:* /success:enable /failure:enable

Enables all audits.

auditpol /set /subcategory:"Logon" /success:enable /failure:enable

Enables specified categories.