Set Outlook Web App to Enable for User Mailboxes Only, Exchange 2007 & 2010
Run the following command to set Outlook Web App enabled for all user mailboxes Get-Mailbox -RecipientTypeDetails UserMailbox -resultsize unlimited | Set-CASMailbox -OWAEnabled $true