Skip to content

Disconnect-Exchange

SYNOPSIS

Disconnect and remove a PowerShell session to an Exchange server.

SYNTAX

Disconnect-Exchange [<CommonParameters>]

DESCRIPTION

The `Disconnect-Exchange` function revokes and removes all active PowerShell sessions to Exchange servers. It also removes all temporary modules and functions associated with the sessions.

EXAMPLES

EXAMPLE 1

Disconnect-Exchange

Stops all sessions to Exchange servers and removes all associated functions and modules.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES