The Disconnect-IMAP cmdlet is used to release the connection previously created by Connect-IMAP cmdlet.
RemarksThis cmdlet disconnects a previously created persistent connection. Pass the existing connection object to the Connection parameter to release the connection.
The following is the full list of the parameters of the cmdlet with short descriptions. Click on the links for further details.
|Connection||The existing connection.|
Connection Parameter (Disconnect-IMAP Cmdlet)
The connection object to be released.
Disconnect-IMAP -Connection $connection
RemarksThis parameter specifies the connection object which will be disconnected.