?
Solved

Deny all users access to OWA 2007, Help with Powershell

Posted on 2009-05-12
6
Medium Priority
?
583 Views
Last Modified: 2012-05-06
Im new ( and very green) to power shell and Im looking for a easy way to deny all my users from accessing OWA.  We only want a few of our users to have access to it.  So with out having to go into the properties of several hundred email boxes and removing the right manualy, is there a commandlet that I can use to do this for me in mass for all users, and then go back in and add those few users that I want to have access?
0
Comment
Question by:CCNPwanabe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 3

Expert Comment

by:Xenus99
ID: 24367262
Try
Set-CASMailbox user -OWAEnabled $false
0
 

Author Comment

by:CCNPwanabe
ID: 24367361
I have to do it for all users... with that command cover that.  Also I dont know if it has any bearing on it, but I am using multiple storage groups with multiple databases...
0
 

Author Comment

by:CCNPwanabe
ID: 24367875
Im a bit affraid to rin commands that Im not sure of their final outcome but tell me if Im on the right track.  Im thinking this would work...
get-casmailbox | foreach {if ($_.owaenabled -eq $true){$_.name}} | Set-CASMailbox {$_.User} -OWAEnabled $false
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:Xenus99
ID: 24368105
0
 

Author Comment

by:CCNPwanabe
ID: 24369119
Thanks but with out knowing enough about this monster, Im gonna need some more help on exactly what it is that I should enter in...
thanks for the link though, good stuff!
0
 

Accepted Solution

by:
CCNPwanabe earned 0 total points
ID: 24390906
get-casmailbox | foreach {if ($_.owaenabled -eq $true){$_.name}} | Set-CASMailbox -OWAEnabled $false

Was the winner, for anyone who needs to know this....
thsi command finds all the users that have OWA enabled in the mailbox and then sets that attribute to disabled.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question