Skip to content

Disconnect-PAMSession

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Ends the Harbor session, clearing the token and re-auth material from module memory. Safe to call when not connected.

Terminal window
Disconnect-PAMSession

Drops this PowerShell session’s CyberArk connection (the one Connect-PAMSession opened) and the cached CPM list, and logs it. Nothing is sent to the vault and nothing on disk changes: a stored service-account secret stays where it is declared.

Terminal window
Disconnect-PAMSession
Terminal window
Connect-PAMSession -ConfigProfile test; Get-PAMSafeRegister -Refresh; Disconnect-PAMSession

Connects, re-syncs the register from the vault, and disconnects again.

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