Link to home
Start Free TrialLog in
Avatar of CCNPwanabe
CCNPwanabeFlag for United States of America

asked on

Deny all users access to OWA 2007, Help with Powershell

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?
Avatar of Xenus99
Xenus99

Try
Set-CASMailbox user -OWAEnabled $false
Avatar of CCNPwanabe

ASKER

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...
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
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!
ASKER CERTIFIED SOLUTION
Avatar of CCNPwanabe
CCNPwanabe
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial