How to disable active sync on Exchange 2012 for a user

Is there a setting or a script or a technique that I could use to disable active sync for an Exchange 2010 user or database of users?  

I have all the users who should use active sync assigned to a specify active sync policy. Everyone else is using the default active sync policy but I can't find a policy setting that block e-mail to phones using that policy.

I don't want to retrieve the device id for each phone and assign it to a specific user at this time. I hope that is not the only way to do this.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
If you are looking for Exchange 2013, please follow the below link
Michael MachieIT SupervisorCommented:
you can go into their Mailbox properties on the Exchange Server and disable ActiveSync.

1) Open Exchange Management Console
2) Expand 'Microsoft Exchange On-Premises'
3) Expand 'Recipient Configuration'
4) Click 'Mailbox'
5) Right-Click the User mailbox you wish to disable ActiveSync for and select 'Properties'
6) Select the 'Mailbox Features' tab.
7) Select 'ActiveSync' and choose 'Disable'

This will disable ActiveSync for those Users. I do not know the PowerShell script to do this for multiple Users.
Simon Butler (Sembee)ConsultantCommented:
I haven't found anything that will disable it for everyone that has the default policy.
The closest I can get is this:

It shouldn't be too difficult to modify the script to query the value of ActiveSyncMailboxPolicy from get-casmailbox which equals true and disable it.

Also remember that you will need to re-run whatever command that you use for new users.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.