TestimoX

API Reference

Command

Backup-CxAuditPolicyDb

Namespace ComputerX.PowerShell

Backs up HKLM\SECURITY\Policy\PolAdtEv to a binary file and optionally emits JSON and .reg.

Examples

Authored help example

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 optionalposition: 0pipeline: false
Target host. If omitted, backs up the local machine.
JsonPath string optionalposition: namedpipeline: false
Optional path to save a JSON baseline of decoded subcategories + flags.
RegPath string optionalposition: namedpipeline: false
Optional path to emit a .reg file representing HKLM\SECURITY\Policy\PolAdtEv.