question

Stephan-7237 avatar image
0 Votes"
Stephan-7237 asked AndyDavid edited

Is Set-CASMailboxPlan a good way to disable POP and IMAP org-wide?

Hi,

we are looking for an easy way to disable POP and IMAP by default for new mailboxes in Exchange Online.

According to https://gcits.com/knowledge-base/disable-pop-imap-mailboxes-office-365/ this seems to be a good way:

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

On set-casmailboxplan it says:
Note: We recommend that you use the Exchange Online PowerShell V2 module to connect to Exchange Online PowerShell. For instructions, see Connect to Exchange Online PowerShell.

So I thought this may be considered deprecated or not best practice. Is Get-CASMailboxPlan a good way to do this?




office-exchange-online-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AndyDavid avatar image
1 Vote"
AndyDavid answered AndyDavid edited

Yes, that is what I use and it works great.

The Command is not deprecated.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.