Skip to content

Compare-PAMComplianceSnapshot

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

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.

Terminal window
Compare-PAMComplianceSnapshot [[-Before] <string>] [[-After] <string>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>]

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).

Terminal window
Compare-PAMComplianceSnapshot -Before snapshot-20260801-063000-001Z.json -After latest

Not described in the module help.

Type Required Position Pipeline input
String No 1 No

Default: latest.

Not described in the module help.

Type Required Position Pipeline input
String No 0 No

Default: previous.

Not described in the module help.

Type Required Position Pipeline input
String No 2 No

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).

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.