Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable OWA and Active Sync for users via CMD shell 1

Status
Not open for further replies.

nhidalgo

MIS
Joined
Jun 13, 2001
Messages
619
Location
US
I have a bunch of users i would like to disable OWA and Active Sync for. is there a power shell command to do this rather than using the GUI and going into properties on each account?

Thanks
 
If you can do a get-casmailbox query that covers all of the users, you can do a
Code:
[url=http://technet.microsoft.com/en-us/library/bb125264.aspx]Set-CASMailbox[/url] -OWAEnabled $false -ActiveSyncEnabled $false

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
How would i to this for a single user.
Would this work?
set- mailuser -identity usertest -OWAEnabled $false -ActiveSyncEnabled $false
 
no.
Code:
Set-CASMailbox username -OWAEnabled $false -ActiveSyncEnabled $false

You were using set-mailuser.

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top