Invoke-HarborHealthScheduledScan
The scheduled-cadence health scan (G1 pattern from Onboard): runs the full check catalogue, diffs check statuses against the previous stored full scan and alerts the webhook on NEW problems only. Connects itself when no session is open (the profile’s declared service account and its declared secret source, zero prompts), so it runs headless from Task Scheduler as well as by hand.
Syntax
Section titled “Syntax”Invoke-HarborHealthScheduledScan [[-ConfigProfile] <string>] [-NoNotify]Description
Section titled “Description”The alerting contract is deliberately quiet: a check that was already warn/fail last run is UNCHANGED (no alert, however long it lingers), a check that recovered is RESOLVED (reported, never alerted), and only checks becoming a problem for the FIRST time notify the webhook (event ‘health-new-problems’, with the score movement in the same message). The very first run is a BASELINE: it records the estate and never alerts, so enabling the schedule on an unhealthy tenant does not blast the channel.
Every run lands in the normal scan history (health-history\scan-*.json, reopenable in the console) with the diff embedded, and feeds the remediation tracker exactly like a console-run scan.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Invoke-HarborHealthScheduledScan -ConfigProfile prodParameters
Section titled “Parameters”-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 0 | No |
-NoNotify
Section titled “-NoNotify”Suppress the webhook alert (the diff is still computed and stored).
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
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 Invoke-HarborHealthScheduledScan -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
