Link to home
Start Free TrialLog in
Avatar of masdf123
masdf123

asked on

Disable OWA for all users in a OU

Hi,

Using Exchange 2007 sp3, server 2003 r2.

I have certain shared mailboxes like, Sales@domain.com, info@sales.com

These can be accessed by almost all users, they have full access permission.

But I would like to disable the ability to access these via OWA.

All these mailbox users are in a separate OU. Can I run a exchange shell script to disable owa on those mailboxes?

Thanks
Avatar of Mark Damen
Mark Damen
Flag of United Kingdom of Great Britain and Northern Ireland image

In Exchange Management Console, double click on the mailbox and one of the tabs contains the options to restrict how that mailbox is accessed.

I think its called Mailbox Access, but can't be 100% without checking and I not infront of a console right now.
Avatar of masdf123
masdf123

ASKER

How can I do this change on 50 mailboxes?
Hi,

try this.

Get-Mailbox | Where {$_.dn -eq "youroudn"} | Set-CASMailbox -owaenabled:$false

Regards
in ADUC create a group say no-owa. and make these users member of this group.
on exchange server open IIS.
go into sites>default website owa> edit permissions.
add group no-owa into it. and deny read write permissions.
job done. :)
This is not the best way to do it though.
ok then here is quick one. select all u want effected and right click properties. and do as markusdamenous said.
hope this would help :)
Selecting all doesn't work. It wont let me see combines properties like AD.

Anyways PowerGUI did the trick.

Thanks
use this comandlet

Get-CASMailbox -OrganizationalUnit "type OU path here"| Set-CASMailbox -OWAEnabled $false

u should write the ou as follow
ad.loc/ou/it
ASKER CERTIFIED SOLUTION
Avatar of masdf123
masdf123

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yes, powergui simulates this command
I am going to accept another solution.
This was the easiest solution for me.