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
Solved

Deny all users access to OWA 2007, Help with Powershell

Posted on 2009-05-12
6
567 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
  • 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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