Question : Turn off OWA for all users in Exchange 2007

Hi All

Quick one for some genius - I need to disable OWA for all users in an Exchange organisation and this is the powershell I was going to use:

Get-Mailbox | Where {$_.Database -eq "EXCHSRV-01\SG-01\MBX-01"} | Set-CASMailbox -OWAEnabled:$false

Will this disable it for all so that I can then re-enable it on a person by person basis?

Cheers

Answer : Turn off OWA for all users in Exchange 2007

To disable OWA and EAS for all users:
get-casmailbox | set-casmailbox -OwaEnabled $false -ActiveSyncEnabled $false

You can filter users based on different parameters, including Exchange
server, mailbox database, department, location, distribution group
membership, etc., and pipe them to Set-CASMailbox command to disable both
OWA and EAS for those users.
Random Solutions  
 
programming4us programming4us