Public/Disconnect-ExchangeServer.ps1
Function Disconnect-ExchangeServer { <# .DESCRIPTION Disconnect existing Exchange Server Sessions .EXAMPLE Disconnect-ExchangeServer -FQDN server.domain.com .Link https://github.com/TheTaylorLee/AdminToolbox #> [CmdletBinding()] [Alias('Disconnect-Exchange')] param ( ) Get-PSSession | Where-Object { $_.ConfigurationName -eq 'Microsoft.Exchange' } | Remove-PSSession } |