Get-HarborHealthSchedule
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.
Syntax
Section titled “Syntax”Get-HarborHealthSchedule [[-ConfigProfile] <string>] [[-TaskName] <string>]Description
Section titled “Description”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.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Get-HarborHealthScheduleShows the default 'Harbor Health Scan' task and the latest stored scan.Example 2
Section titled “Example 2”Get-HarborHealthSchedule -ConfigProfile test | Select-Object Registered, NextRunAt, LastResultThe schedule status for the 'test' profile's scan history.Parameters
Section titled “Parameters”-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 0 | No |
-TaskName
Section titled “-TaskName”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).
See also
Section titled “See also”- All Harbor Health cmdlets
- In PowerShell:
Get-Help Get-HarborHealthSchedule -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
