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 Mike Lewis 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
Jun 13, 2001
619
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top