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

Stephan 26 Reputation points
2021-03-23T13:35:52.177+00:00

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?

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,740 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 152.3K Reputation points MVP
    2021-03-23T14:18:42.49+00:00

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

    The Command is not deprecated.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.