Invoke-HarborHealthCheck
Runs the full health-check catalogue against the connected tenant and returns one scored result: overall 0-100, pillar sub-scores, and every check with its evidence.
Syntax
Section titled “Syntax”Invoke-HarborHealthCheck [[-ConfigProfile] <string>] [[-Pillar] <string>] [[-CheckId] <string[]>]Description
Section titled “Description”One collection pass (Get-HealthContext), then every registered check (Private/Checks/*) evaluates as a pure function of that context.
Scoring: Health = round(100 * sum(w_i * s_i) / sum(w_i)) over checks that RETURNED a score – an N/A check (score $null: the data source is absent on this tenant) drops out of the denominator entirely, so a tenant without Credential Providers is not punished for having none. Bands: >= bandGreen ‘healthy’, >= bandAmber ‘attention’, else ‘at risk’ (thresholds config-overridable).
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Connect-PAMSession -ConfigProfile demo; Invoke-HarborHealthCheckParameters
Section titled “Parameters”-CheckId
Section titled “-CheckId”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String[] |
No | 2 | No |
Default: @().
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 0 | No |
-Pillar
Section titled “-Pillar”Scoped runs (operator 2026-07-29): one pillar, or hand-picked checks. Partial results are flagged, excluded from the full-score trend, and only the INCLUDED checks touch the remediation tracker.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 1 | No |
Accepted values: Components, Hygiene.
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-HarborHealthCheck -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
