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:
Get-CASMailbox | Set-CASMailbox -OWAEnabled $False
Get-CASMailbox | Set-CASMailbox -ActiveSyncEnabled $False
Get-CASMailbox | Set-CASMailbox -IMAPEnabled $False
Get-CASMailbox | Set-CASMailbox -MAPIEnabled $False
Thanks a lot!ReplyDelete
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
Nice concise article, great reference. To check your work, run "Get-CASMailbox | more". You'll see which accounts have which services enabled.ReplyDelete
Also, 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.ReplyDelete
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!
how can i disable pop3 from more than 1000 usersReplyDelete
Add -resultsize unlimited to your script... In your case it would be Get-CASMailbox -resultsize unlimited | Set-CASMailbox -POPEnabled $FalseDelete