Answered by:
Disable OWA

Question
-
Hi All,
in my organization, when I want to create new mailbox (existing / new), I want to disable OWA feature by default. Any ideas ?
Wednesday, February 16, 2011 7:55 AM
Answers
-
There is no way to automatically disable owa for new mailboxes, this must be set after the mailbox is created. You can do this using powershell, create a small script and add the script as a scheduled task that runs every night. If you want to have OWA enabled on some mailboxes you can, for example, add a custom attribute to those users. Then disable all users that do not have the custom attribute.
To disable owa for all users run the following command:
Get-Mailbox | Set-CASMailbox -OWAEnabled:$falseTo disable owa for all users that do not have a custom attribute (in this example, CustomAttribute10 set to EnableOWA):
Get-Mailbox | Where {$_.CustomAttribute10 -ne "EnableOWA"} | Set-CASMailbox -OWAEnabled:$falseThiere might be some third party tools you can use that does this for you but if you are using just Exchange you will have to administrate this manually after the creation or using a simliar script.
Martin Sundström | Microsoft Certified Trainer | MCITP: Enterprise Messaging Administrator 2007/2010 | http://msundis.wordpress.com
- Edited by Martin Sundström Thursday, February 17, 2011 9:59 AM Added information on how to use powershell to solve this issue
- Proposed as answer by Martin Sundström Thursday, February 17, 2011 10:00 AM
- Marked as answer by emma.yoyo Monday, February 21, 2011 3:16 AM
Wednesday, February 16, 2011 8:55 AM
All replies
-
There is no way to automatically disable owa for new mailboxes, this must be set after the mailbox is created. You can do this using powershell, create a small script and add the script as a scheduled task that runs every night. If you want to have OWA enabled on some mailboxes you can, for example, add a custom attribute to those users. Then disable all users that do not have the custom attribute.
To disable owa for all users run the following command:
Get-Mailbox | Set-CASMailbox -OWAEnabled:$falseTo disable owa for all users that do not have a custom attribute (in this example, CustomAttribute10 set to EnableOWA):
Get-Mailbox | Where {$_.CustomAttribute10 -ne "EnableOWA"} | Set-CASMailbox -OWAEnabled:$falseThiere might be some third party tools you can use that does this for you but if you are using just Exchange you will have to administrate this manually after the creation or using a simliar script.
Martin Sundström | Microsoft Certified Trainer | MCITP: Enterprise Messaging Administrator 2007/2010 | http://msundis.wordpress.com
- Edited by Martin Sundström Thursday, February 17, 2011 9:59 AM Added information on how to use powershell to solve this issue
- Proposed as answer by Martin Sundström Thursday, February 17, 2011 10:00 AM
- Marked as answer by emma.yoyo Monday, February 21, 2011 3:16 AM
Wednesday, February 16, 2011 8:55 AM -
Any update on this issue?
Martin Sundström | Microsoft Certified Trainer | MCITP: Enterprise Messaging Administrator 2007/2010 | http://msundis.wordpress.comThursday, February 17, 2011 10:02 AM -
Any update on this issue?
I've already tell to my customer it can't be done. As you said, it must disabled after the mailbox created. Thanks!
Martin Sundström | Microsoft Certified Trainer | MCITP: Enterprise Messaging Administrator 2007/2010 | http://msundis.wordpress.comFriday, February 18, 2011 7:30 AM