Public/Disconnect-midPoint.ps1
|
function Disconnect-midPoint { <# .SYNOPSIS Removes the stored midPoint session. .DESCRIPTION Forgets the connection and the credential stored by Connect-midPoint. midPoint REST uses no server-side session, so nothing is sent to the server. .EXAMPLE Disconnect-midPoint #> [CmdletBinding()] param() if (-not $script:midPointSession) { Write-Verbose 'No midPoint session to remove.' return } $script:midPointSession = $null } |