Skip to content

Test-PAMConnection

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Live connectivity check for the current session: confirms we can actually reach and call CyberArk right now (session present, token still valid, PVWA API responding). Powers the dashboard’s connection tiles.

Terminal window
Test-PAMConnection [[-ConfigPath] <string>] [[-ConfigProfile] <string>]

Three checks, each with a plain-words Detail: a session exists, its access token has not expired (an expired one refreshes on the next call), and one small read (GET API/Safes, limit 1, 10 s timeout) answers. It never connects by itself – without a session Connected is $false and only the Session check is reported.

Terminal window
Test-PAMConnection | Select-Object -ExpandProperty Checks
Terminal window
if (-not (Test-PAMConnection).Connected) { Connect-PAMSession -ConfigProfile prod }

Not described in the module help.

Type Required Position Pipeline input
String No 0 No

Not described in the module help.

Type Required Position Pipeline input
String No 1 No

This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).

  • PSCustomObject: Connected (bool), PvwaUrl, Profile, ClientId, Checks (array of { Check, Ok, Detail })

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.