How to disable ActiveSync for users

Posted on 2010-11-08
Last Modified: 2012-05-10

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?
Question by:thoree
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 12

Expert Comment

ID: 34084454
A user template is the best way to accomplish this. See the following article:

Author Comment

ID: 34084511
So it is not possible to configure Exchange 2010 to set activesync=disabled for new user-accounts without having to copy the template?

LVL 49

Expert Comment

ID: 34084517
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now


Author Comment

ID: 34084541
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.
LVL 49

Expert Comment

ID: 34084552

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

Author Comment

ID: 34084581
Thank you very much for your quick response, I will try this solution.
LVL 49

Accepted Solution

Akhater earned 500 total points
ID: 34084598
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


Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to install and use the NTBackup utility that comes with Windows Server.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to:…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question