Test-HarborSetup
The Harbor doctor: checks everything a client install needs, each check green/red with a fix hint. Run it first on every new environment.
Syntax
Section titled “Syntax”Test-HarborSetup [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [-Connect] [-Quiet]Description
Section titled “Description”Offline checks always run: config loads + validates, no template placeholders, local override present, secret source available, log / register paths writable, CSV templates present. Live checks run when a session already exists, or when -Connect is passed (which authenticates and leaves the session open): token works against PVWA, the two global admin groups resolve as a vault group or Identity role, and a least-privilege probe confirms the service user can READ CyberArk Identity roles (Redrock) – the rights gap that otherwise surfaces only mid-onboarding when a persona group is an Identity role. Returns one object per check (Check, Status Pass/Warn/Fail/Skip, Detail) and prints a colored summary. Any Fail means not ready.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Test-HarborSetupExample 2
Section titled “Example 2”Test-HarborSetup -Connect -ConfigProfile testParameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 0 | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 1 | No |
-Connect
Section titled “-Connect”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-Quiet
Section titled “-Quiet”Not described in the module help.
| 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 Onboard cmdlets
- In PowerShell:
Get-Help Test-HarborSetup -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
