Disconnect-ExchangeOnline.ps1

1
2
3
4
Function Disconnect-ExchangeOnline
{
  Get-PSSession | ?{$_.ComputerName -like '*outlook.office365.com'} | Remove-PSSession
}