Disconnect-PAMSession
Clears the in-memory CyberArk session (token + any cached secret).
Syntax
Section titled “Syntax”Disconnect-PAMSessionDescription
Section titled “Description”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.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Disconnect-PAMSessionEnds the current session; a scan after this needs Connect-PAMSession first.See also
Section titled “See also”- All Harbor Health cmdlets
- In PowerShell:
Get-Help Disconnect-PAMSession -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
