Skip to content

Disconnect-PAMSession

Harbor HealthNo sign-in neededGenerated from the codeDescribes Health 0.22.0

Clears the in-memory CyberArk session (token + any cached secret).

Terminal window
Disconnect-PAMSession

Forgets the console’s service session in THIS PowerShell session: the bearer token, the run id and the demo vault state. Nothing is written to disk and nothing is sent to the tenant (the token simply stops being used and expires there on its own). Stored secrets (DPAPI, SecretManagement) are not touched, so the next Connect-PAMSession can reconnect. Does nothing when no session is connected.

Terminal window
Disconnect-PAMSession
Ends the current session; a scan after this needs Connect-PAMSession first.

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