Get-PAMComplianceSnapshot
Browses the G1 snapshot store: no arguments lists every stored compliance snapshot (newest first, metadata per row); -Name or -Latest returns one full snapshot document.
Syntax
Section titled “Syntax”Parameter set List (default):
Get-PAMComplianceSnapshot [-ConfigPath <string>] [-ConfigProfile <string>]Parameter set One:
Get-PAMComplianceSnapshot [-Name <string>] [-Latest] [-ConfigPath <string>] [-ConfigProfile <string>]Description
Section titled “Description”Snapshots are written by Invoke-PAMComplianceScan into <logPath>\compliance. Each row carries the run’s numbers (findings, new/resolved vs its previous run, grade, auto-remediation attempts) so trends read at a glance; the full document holds the finding rows and the embedded diff. Offline – no vault session needed.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Get-PAMComplianceSnapshot | Format-Table Name, GeneratedAt, Findings, NewCount, GradeParameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
-Latest
Section titled “-Latest”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
A snapshot filename from the list (e.g. snapshot-20260804-063000-123Z.json).
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
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 Get-PAMComplianceSnapshot -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
