Project

AuditPolicy

AuditPolicy module aims to replace auditpol.exe to get or set Auditing Policies in Windows in more native PowerShell way

Stars11
Forks2
Open issues0
PowerShell Gallery downloads23373
Releasev0.0.6
Language: PowerShell Updated: 2026-02-14T21:44:05.0000000+00:00

Documentation

AuditPolicy Overview

When to use AuditPolicy and what it covers.

Use AuditPolicy when Windows audit policy state needs to be inspected, backed up, restored, or changed from PowerShell.

It is most useful for repeatable workstation or server checks where auditpol.exe, Local Security Policy, and Group Policy interactions need to be handled deliberately.

Common tasks

  • Review current audit policy settings by category or policy name.
  • Back up local audit policy before making changes.
  • Restore a saved policy file in a controlled maintenance window.
  • Test changes with -WhatIf before applying them.