Skip to content

Get-PAMComplianceSchedule

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Status of the scheduled compliance scan: whether the Task Scheduler job exists (next/last run + last result), plus the latest snapshot’s numbers and diff, and the recent snapshot history.

Terminal window
Get-PAMComplianceSchedule [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [[-TaskName] <string>]

Works with no task registered (Registered = false; snapshot data still reported, e.g. after manual Invoke-PAMComplianceScan runs). LastResult 0 means the last scheduled run succeeded; 267011 means the task has not run yet.

Terminal window
Get-PAMComplianceSchedule -ConfigProfile prod
Terminal window
(Get-PAMComplianceSchedule).LastResult -eq 0

$true when the last scheduled run succeeded.

Not described in the module help.

Type Required Position Pipeline input
String No 0 No

Not described in the module help.

Type Required Position Pipeline input
String No 1 No

Not described in the module help.

Type Required Position Pipeline input
String No 2 No

Default: Harbor Compliance Scan.

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.