How to enable and disable pop3 and imap with exchange 2007 shell
Set-CASMailbox UserMailbox -ImapEnabled $false
Set-CASMailbox UserMailbox -PopEnabled $false
To enable imap or pop to one user typ
or
Set-CASMailbox UserMailbox -PopEnabled $true
or
To disable imap or pop to one user type
Set-CASMailbox UserMailbox -ImapEnabled $true