disable selected devices from ActiveSync

I am running Exchange 2007, what I am trying to do is disable account with multiple selceted devices sync to Activesync. If lets say BOB has 2 devices on activesync, I disable one of his device. How do I make it so that device does not get resync with ActiveSync server. What I am finding is that even though I deleted the device from the server, the device still resync. Anybody having this issue?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Viral RathodConsultantCommented:
Yes ,we can disable selected device using following power shell commands.

First check the device id using Get-ActiveSyncDeviceStatistics command and then block using set-casmailbox command.

This example adds the device ID to the ActiveSyncBlockedDeviceIDs parameter list to prevent the device from synchronizing with Microsoft Exchange.

Set-CASMailbox -Identity: "EmailAlias" -ActiveSyncBlockedDeviceIDs: "<DeviceID_1>","<DeviceID_2>"

This example retrieves the device ID after the user has synchronized the device with the Exchange server.

Get-ActiveSyncDeviceStatistics -Mailbox:"<EmailAlias>" |fl DeviceID

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
Viral RathodConsultantCommented:
To find curremt device id you can use following command from powershell ,This is will give detailed information

Get-ActivesyncDeviceStatistics -Mailbox foo@yourdomain.com

according to out you can the disable the device using last command.
officertangoAuthor Commented:
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.