Harbor Health cmdlets
Harbor Health 0.22.0 exports 14 commands. Everything the console does is also one of these commands, so it can be scripted and scheduled. The pages are generated from the module’s own help: Get-Help <command> -Full in PowerShell shows the same text.
Import-Module HarborHealth # after Install-HarborHealth.ps1 -InstallModule, or from the release folderGet-Command -Module HarborHealth| Command | What it does |
|---|---|
| Connect-PAMSession | Authenticates to CyberArk Privilege Cloud and opens the module session every live Health cmdlet uses. |
| Disconnect-PAMSession | Clears the in-memory CyberArk session (token + any cached secret). |
| Export-HarborHealthDiagnostics | Captures the RAW API responses Harbor Health parses – plus a fold dry-run – into one local JSON file, so response-shape gaps on a real tenant can be fixed from evidence instead of guesses. |
| Export-HarborHealthReport | Renders a health-check result as a self-contained HTML report (the boardroom artifact) and writes it to -Path. |
| 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. |
| Get-HarborTlsStatus | Is HTTPS set up for a console port? { Port; Bound; IpPort; Thumbprint; NotAfter; ExpiresInDays; Harbor (the cert is Harbor’s own) }. Needs no elevation. |
| Initialize-HarborTls | One-time, ELEVATED: sets up HTTPS for the Harbor consoles on this machine – a certificate (generated, reused or yours) bound in http.sys to both consoles’ ports. Exported by both products. |
| 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. |
| 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. |
| Register-HarborHealthSchedule | Registers the Windows Task Scheduler job that runs the health scan on a cadence (G1 pattern): daily at a set time by default, or every N hours. Runs as the CURRENT user without storing a password (S4U), so it fires whether or not anyone is signed in. |
| Set-HarborServiceAccount | Declares the console’s service account (The service account is explicit). Exported by both products. |
| Set-HarborWebLogin | Creates, changes or disables the BREAK-GLASS account – the local username + password that always works, even when SSO does not. Exported by both products. |
| Start-HarborHealthWeb | Launches the local Harbor Health web console – a zero-dependency HttpListener server (bound to 127.0.0.1 only) over the module’s functions. |
| Unregister-HarborHealthSchedule | Removes the scheduled health scan task. Scan history and the remediation tracker are kept – only the Task Scheduler job goes. |
Help coverage
Section titled “Help coverage”| Commands | |
|---|---|
| With a synopsis | 14 of 14 |
| With a description | 14 of 14 |
| With at least one example | 14 of 14 |
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
