API Reference
Command
Restore-CxAuditPolicyDb
Restores advanced Audit Policy (PolAdtEv) from a binary or JSON baseline.
Examples
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 PathParameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- Path string
- File system path to the target resource.
- AdjustRegistryAcl SwitchParameter
- Gets or sets the AdjustRegistryAcl parameter.
Restore-CxAuditPolicyDb [-ComputerName <string>] -JsonPath <string> [-AdjustRegistryAcl] [<CommonParameters>]#Parameter set:
By JsonPathParameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- JsonPath string
- Gets or sets the JsonPath parameter.
- AdjustRegistryAcl SwitchParameter
- Gets or sets the AdjustRegistryAcl parameter.