How to disable ActiveSync for users

Hi,

2 questions about Activesync in Exchange 2010:

1: I have a number of users using ActiveSync to sync email between Exchange 2010 and the mobile. Now I want to disable activesync for all users EXCEPT for the users who are already using it. In other words,I want to disable Activesync for users who do not already have an activesync partnership.

2: How can I change the default so that new users are created with ActiveSync=Disabled?
thoreeAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
AkhaterConnect With a Mentor Commented:
just to avoid any confusion this is the part you need


$NotASMbx = Get-CASMailbox -resultsize Unlimited | ?{$_.HasActiveSyncDevicePartnership  -eq $false} 

$NotASMbx | Set-CASMailbox -ActiveSyncEnabled $false

Open in new window

0
 
GusGallowsCommented:
A user template is the best way to accomplish this. See the following article:
http://blogs.technet.com/b/vik/archive/2007/02/02/how-to-enable-and-disable-exchange-activesync-features-in-exchange.aspx
0
 
thoreeAuthor Commented:
So it is not possible to configure Exchange 2010 to set activesync=disabled for new user-accounts without having to copy the template?

0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
AkhaterCommented:
what you are trying to accomplish is not easy

to do your first question you need a script i can help you with this

for point 2 no it is not possible unless you create your own scritps to provision your new users
0
 
thoreeAuthor Commented:
Thanks for your answers. And it would be great if you could give an example of a script doing what I want in question 1.
0
 
AkhaterCommented:
ok

Get-CASMailbox -resultsize Unlimited | ?{$_.HasActiveSyncDevicePartnership  -eq $true}

will give you a list of all users that are already using active sync

$NotASMbx = Get-CASMailbox -resultsize Unlimited | ?{$_.HasActiveSyncDevicePartnership  -eq $false}

$NotASMbx | Set-CASMailbox -ActiveSyncEnabled $false

this will disable activesync for all users that are not using it already
0
 
thoreeAuthor Commented:
Thank you very much for your quick response, I will try this solution.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.