Skip to content

Get-HarborHealthSchedule

Harbor HealthNo sign-in neededGenerated from the codeDescribes Health 0.22.0

Status of the scheduled health scan: whether the Task Scheduler job exists (next/last run + last result), plus the latest stored scan’s numbers and diff, and how many scans the history holds.

Terminal window
Get-HarborHealthSchedule [[-ConfigProfile] <string>] [[-TaskName] <string>]

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

Terminal window
Get-HarborHealthSchedule
Shows the default 'Harbor Health Scan' task and the latest stored scan.
Terminal window
Get-HarborHealthSchedule -ConfigProfile test | Select-Object Registered, NextRunAt, LastResult
The schedule status for the 'test' profile's scan history.

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

Default: Harbor Health 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.