API Reference
Command
Backup-CxAuditPolicyDb
Backs up HKLM\SECURITY\Policy\PolAdtEv to a binary file and optionally emits JSON and .reg.
Examples
Example 1
$bin = Backup-CxAuditPolicyDb
Example 2
Backup-CxAuditPolicyDb -ComputerName SRV1 -JsonPath C:\\tmp\\audit.json -RegPath C:\\tmp\\audit.reg
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Backup-CxAuditPolicyDb [-ComputerName <string>] [-JsonPath <string>] [-RegPath <string>] [<CommonParameters>]#Parameters
- ComputerName string
- Target host. If omitted, backs up the local machine.
- JsonPath string
- Optional path to save a JSON baseline of decoded subcategories + flags.
- RegPath string
- Optional path to emit a .reg file representing HKLM\SECURITY\Policy\PolAdtEv.