TestimoX

API Reference

Command

Restore-CxAuditPolicyDb

Namespace ComputerX.PowerShell

Restores advanced Audit Policy (PolAdtEv) from a binary or JSON baseline.

Examples

Authored help example

Example 1


Restore-CxAuditPolicyDb -Path C:\\Backups\\PolAdtEv-20251001-120000.bin
        

Example 2


Restore-CxAuditPolicyDb -ComputerName SRV1 -JsonPath C:\\tmp\\audit-baseline.json -AdjustRegistryAcl -Confirm
        

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

Restore-CxAuditPolicyDb [-ComputerName <string>] -Path <string> [-AdjustRegistryAcl] [<CommonParameters>]
#
Parameter set: By Path

Parameters

ComputerName string optionalposition: 0pipeline: false
Target computer(s). Use '.' for local computer or provide DNS names.
Path string requiredposition: 1pipeline: false
File system path to the target resource.
AdjustRegistryAcl SwitchParameter optionalposition: namedpipeline: false
Gets or sets the AdjustRegistryAcl parameter.
Restore-CxAuditPolicyDb [-ComputerName <string>] -JsonPath <string> [-AdjustRegistryAcl] [<CommonParameters>]
#
Parameter set: By JsonPath

Parameters

ComputerName string optionalposition: 0pipeline: false
Target computer(s). Use '.' for local computer or provide DNS names.
JsonPath string requiredposition: 1pipeline: false
Gets or sets the JsonPath parameter.
AdjustRegistryAcl SwitchParameter optionalposition: namedpipeline: false
Gets or sets the AdjustRegistryAcl parameter.