CCNPwanabe
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?
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...
ASKER
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
get-casmailbox | foreach {if ($_.owaenabled -eq $true){$_.name}} | Set-CASMailbox {$_.User} -OWAEnabled $false
ASKER
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!
thanks for the link though, good stuff!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Set-CASMailbox user -OWAEnabled $false