Compare-PAMComplianceSnapshot
Time travel across compliance snapshots: diffs ANY two stored runs – findings that appeared, findings that resolved, and how the score/grade moved between them. Offline.
Syntax
Section titled “Syntax”Compare-PAMComplianceSnapshot [[-Before] <string>] [[-After] <string>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>]Description
Section titled “Description”Uses the same finding identity as the scheduled scan (Kind|SafeName), so the answer to “what changed between last Tuesday and today” is the same shape the alerting uses. -Before/-After take snapshot filenames from Get-PAMComplianceSnapshot, or the keywords ‘latest’ and ‘previous’. Default: previous vs latest (= the last run’s diff, recomputed from the documents).
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Compare-PAMComplianceSnapshot -Before snapshot-20260801-063000-001Z.json -After latestParameters
Section titled “Parameters”-After
Section titled “-After”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 1 | No |
Default: latest.
-Before
Section titled “-Before”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 0 | No |
Default: previous.
-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 2 | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 3 | 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 Compare-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.
