Disable POP3 for ALL users

To disable POP3 for all users with mailboxes on exchange 2007 (only this was executed this time; probably it works in a mixed environment too) you need to execute following command:

Get-CASMailbox | Set-CASMailbox -PopEnabled $False

POP3I

In the same way the script can be executed to enable/disable:

  • OWA
    Get-CASMailbox | Set-CASMailbox -OWAEnabled $False
  • ActiveSync
    Get-CASMailbox | Set-CASMailbox -ActiveSyncEnabled $False
  • IMAP
    Get-CASMailbox | Set-CASMailbox -IMAPEnabled $False
  • MAPI
    Get-CASMailbox | Set-CASMailbox -MAPIEnabled $False

Comments

  1. good find..however how do have pop disabled for all new users? as soon as you create a new account pop is enabled...how can it be set by default that all pop is disabled...

    ReplyDelete
  2. Nice concise article, great reference. To check your work, run "Get-CASMailbox | more". You'll see which accounts have which services enabled.

    Also, I'd love to know how to set defaults on this as well, perhaps more googling is in my future.

    ReplyDelete
  3. What if I wanted to run it only on a single Exchange 2007 server? I can't quite get the command correct.

    But as an FYI...the command as posted in the blog applies to both Exchange 2007 and Legacy 2003 Mailboxes.

    Thanks for the good info!

    ReplyDelete
  4. how can i disable pop3 from more than 1000 users

    ReplyDelete
    Replies
    1. Add -resultsize unlimited to your script... In your case it would be Get-CASMailbox -resultsize unlimited | Set-CASMailbox -POPEnabled $False

      Delete

Post a Comment

Popular posts from this blog

Change SMTP port 25 in Exchange 2007, 2010

How can you bypass sender or sender's domain in Exchange 2007 Content filter anti-spam agent

Error "<#5.5.2 smtp;554 5.5.2 Invalid data in message> #SMTP#" when you send attachment in your mail