Monday, November 17, 2008

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

4 comments:

Anonymous said...

Thanks a lot!

Anonymous said...

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...

Tom said...

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.

Ytsejamer1 said...

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!