Disconnect-ExchangeComplianceOnline.ps1

1
2
3
4
Function Disconnect-ExchangeComplianceOnline
{
  Get-PSSession | ?{$_.ComputerName -like '*ps.compliance.protection.outlook.com'} | Remove-PSSession
}