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
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
Thanks a lot!
ReplyDeletegood 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...
ReplyDeleteNice concise article, great reference. To check your work, run "Get-CASMailbox | more". You'll see which accounts have which services enabled.
ReplyDeleteAlso, I'd love to know how to set defaults on this as well, perhaps more googling is in my future.
What if I wanted to run it only on a single Exchange 2007 server? I can't quite get the command correct.
ReplyDeleteBut as an FYI...the command as posted in the blog applies to both Exchange 2007 and Legacy 2003 Mailboxes.
Thanks for the good info!
how can i disable pop3 from more than 1000 users
ReplyDeleteAdd -resultsize unlimited to your script... In your case it would be Get-CASMailbox -resultsize unlimited | Set-CASMailbox -POPEnabled $False
Delete