Invoke-PAMComplianceReport
One-shot compliance/evidence report: composes RBAC drift, rogue-safe detection and the register stats into a single scored summary, optionally written as a self-contained HTML report.
Syntax
Section titled “Syntax”Invoke-PAMComplianceReport [[-ReportPath] <string>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [-SkipDrift] [-NoNotify]Description
Section titled “Description”The “prove it” cmdlet: run it monthly (or before an audit) to show how much of the estate is on-standard. Composes three existing scans:
- RBAC drift (Compare-PAMSafePermissions -All) – the slow part
- Rogue safes (Get-PAMRogueSafe) – unregistered/off-standard
- Registers (safe + account registers) – what Harbor provisioned
Requires a connected session. -SkipDrift gives a quick pass (rogue + registers only) when a full member-by-member drift scan is too slow.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Invoke-PAMComplianceReport -ReportPath .\compliance-2026-07.htmlParameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 1 | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 2 | No |
-NoNotify
Section titled “-NoNotify”Suppress the ‘compliance-findings’ webhook ping (the scheduled scan passes this and alerts on NEW drift only instead).
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-ReportPath
Section titled “-ReportPath”Optional output file. ‘.html’ writes the branded HTML report; ‘.json’ writes the full summary + findings as JSON.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 0 | No |
-SkipDrift
Section titled “-SkipDrift”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Invoke-PAMComplianceReport -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
