Disable IMAP and POP On All Mailboxes in Office365 By Default

Easy little Powershell one-liner here. It finds mailbox plans with imap or pop enabled and then sets the default to off.

Get-CASMailboxPlan -Filter {ImapEnabled -eq "true" -or PopEnabled -eq "true" } | set-CASMailboxPlan -ImapEnabled $false -PopEnabled $false

Leave a Reply

Your email address will not be published.