Remove mobile device with PowerShell in Exchange
Posted: Wed 30 Nov 2016, 10:43
In PowerShell you can see which current devices are connected to a user:
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:
3 Find the device you want to remove, and copy paste the GUID
4 Run the following cmdlet: (replace the guid with your GUID)
After that the devices are deleted in Exchange.
Code: Select all
Get-ActiveSyncDeviceStatistics -Mailbox [username] | Select-Object -Property "Identity"
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
4 Run the following cmdlet:
Code: Select all
Remove-ActiveSyncDevice -Id [e.g. 0215da00-227e-4470-a498-e4a44615a223]
After that the devices are deleted in Exchange.