Remove mobile device with PowerShell in Exchange

Allerlei tweaks voor Exchange

Moderator: Theet

Theet
Posts: 200
Joined: Mon 27 Sep 2010, 16:35

Remove mobile device with PowerShell in Exchange

Post by Theet »

In PowerShell you can see which current devices are connected to a user:

Code: Select all

Get-ActiveSyncDeviceStatistics -Mailbox [username] | Select-Object -Property "Identity"
When “The ActiveSyncDevice cannot be found” in Exchange 2010 while removing a device then you can do next steps:

This error occurs because the device has moved to another location in Active Directory or is disconnected.
The trick in this issue is to remove the device on its GUID.

1 First, open the Exchange Management Shell
2 Run the following cmdlet:

Code: Select all

Get-ActiveSyncDeviceStatistics -Mailbox emailaddress@yourdomain.com
3 Find the device you want to remove, and copy paste the GUID
4 Run the following cmdlet:

Code: Select all

Remove-ActiveSyncDevice -Id [e.g. 0215da00-227e-4470-a498-e4a44615a223]
(replace the guid with your GUID)

After that the devices are deleted in Exchange.