Disconnect Remote Exchange Management Shell from an Exchange Server

Exchange 2010

Applies to: Exchange Server 2010 SP2, Exchange Server 2010 SP3

Topic Last Modified: 2009-10-14

You can disconnect from a remote server running Microsoft Exchange Server 2010 using the remote Shell.

Looking for other management tasks related to the remote Shell? Check out Managing Exchange Management Shell Connections.

If you close the Windows PowerShell window without following this procedure, the session will have to time out, and the quota for the maximum number of concurrent connections may prevent you from connecting back to the service on a timely basis.

You can't use the EMC to disconnect from a remote Exchange 2010 server.

This example disconnects from the Exchange 2010 server.

Remove-PSSession $Session