exchange command to remove activesync device?

getting an error in the console.

what's the simple correct command to remove the test device from mailbox?

thanks
LVL 1
CHI-LTDAsked:
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.

CHI-LTDAuthor Commented:
to add, the identity of the device looks wrong which i guess is why its failing..

can this be edited/removed in AD using ADSIEDIT?
0
Will SzymkowskiSenior Solution ArchitectCommented:
You can use the following commands...
Get-ActiveSyncDeviceStatistics -Mailbox user1

Open in new window


Then you can use
Remove-ActiveSyncDevice -Identity deviceid

Open in new window


Will.
0
CHI-LTDAuthor Commented:
thought i tried that, so just retried and its failing..

Remove-ActiveSyncDevice -Identity deviceid ******
&
Remove-ActiveSyncDevice -Identity ******
0
Top Threats of Q1 & How to Defend Against Them

WEBINAR: Join WatchGuard CTO and our Threat Research Team on Aug. 2nd to hear the findings from our Q1 Internet Security Report! Learn more about the top threats detected in the first quarter and how you can defend your business against them!

Will SzymkowskiSenior Solution ArchitectCommented:
Well what is the error message?

We cannot help unless we know this information.

Will.
0
Shreedhar EtteCommented:
Hi,

Execute this command to get the ActiveSync Device Details:
Get-ActiveSyncDevice –Mailbox “UserName” |Format-List DeviceId, DeviceType, DeviceModel, DeviceOS, FriendlyName, Name

Execute this command to Remove Specific Active Sync Device:
Get-ActiveSyncDevice | where {$_.DeviceId -eq “DeviceID”} | Remove-ActiveSyncDevice

Note: Please replace DeviceID with proper id.
0

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
CHI-LTDAuthor Commented:
well the command ran with no errors but the device (testactivesync) still shows...
0
Shreedhar EtteCommented:
Hi CHI-LTD,

Please refer this article and execute command as guided:
https://patrickhoban.wordpress.com/2011/11/22/1344/
0
CHI-LTDAuthor Commented:
any ideas what § is?
0
Shreedhar EtteCommented:
Hi,

That "§" symbol used to fill the space.

You just copy paste into the command.
0
CHI-LTDAuthor Commented:
that's the same command that the console runs and fails..
0
Shreedhar EtteCommented:
Please post the error..
0
CHI-LTDAuthor Commented:
0
Shreedhar EtteCommented:
Is the user is located in the OU you are mentioned in the command?
0
CHI-LTDAuthor Commented:
sure is
0
CHI-LTDAuthor Commented:
looks like the path isnt valid anymore.  one of the site names in AD was changed.
there must be a way to remove this?
0
CHI-LTDAuthor Commented:
any ideas?
0
Shreedhar EtteCommented:
Other option is from EMC. However you mentioned that you are getting error.

Please share the error you are getting.
0
CHI-LTDAuthor Commented:
So its showing the test device in EMC, but cant remove.
There is also an ipad listed (correctly) and running:
Get-ActiveSyncDevice –Mailbox “UserName” |Format-List DeviceId, DeviceType, DeviceModel, DeviceOS, FriendlyName, Name

shows the ipad only, not the test device.
0
CHI-LTDAuthor Commented:
In EMC i get
EMC.jpg
0
CHI-LTDAuthor Commented:
couldnt remove it for some reason...
0
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
Powershell

From novice to tech pro — start learning today.

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.