Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1636
  • Last Modified:

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?
0
thoree
Asked:
thoree
  • 3
  • 3
1 Solution
 
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
 
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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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
 
AkhaterCommented:
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

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now