Solved

Deny all users access to OWA 2007, Help with Powershell

Posted on 2009-05-12
6
551 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

Too many email signature updates to deal with?

Do you feel like you are taking up all of your time constantly visiting users’ desks to make changes to email signatures? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

Join & Write a Comment

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now