Skip to content

Instantly share code, notes, and snippets.

@seanosullivanuk
Created September 18, 2020 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanosullivanuk/3b970b74f798ddc0a01b83ba65dd194b to your computer and use it in GitHub Desktop.
Save seanosullivanuk/3b970b74f798ddc0a01b83ba65dd194b to your computer and use it in GitHub Desktop.
Filter out any mailbox that has IMAP or POP enabled, with Exchange Online
Get-CASMailbox -Filter {ImapEnabled -eq "True" -or PopEnabled -eq "True"} | Select-Object @{n = "identity"; e = {$_.primarysmtpaddress}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment