Solved

Deny all users access to OWA 2007, Help with Powershell

Posted on 2009-05-12
6
578 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
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

688 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