How to enable and disable pop3 and imap with exchange 2007 shell

Facebookgoogle_plus

Set-CASMailbox UserMailbox -ImapEnabled $false

 Set-CASMailbox UserMailbox -PopEnabled $false

To enable imap or pop to one user typ