- How To Remove Activesync Partnership Exchange 2010
- How To Remove Activesync Device Exchange 2013
- How To Remove Activesync Device Exchange 2010 Powershell
The Remove-ActiveSyncDevice cmdlet is useful for removing mobile devices that no longer synchronize successfully with the server. You need to be assigned permissions before you can run this cmdlet. The Remove Connectivity Analyzer is a web page that lets you test multiple different connectivity types as though you were sitting outside of the network. There are two tests you can perform: Exchange Active. Sync – simulates all of the steps that a mobile device would use to connect to Exchange and sync mailbox items.
This will be a quick how-to guide on removing old/stale ActiveSync devices from Microsoft Exchange.
This is incorrect, or only 'partially correct'. Please see @Pacerier comment further up saying extensions appear in other folders as well. These commands will clean up the extensions living in those places but not others. For me I had to manually eyeball hidden folders (shift + cmd +. How to remove an ActiveSync account on iOS. Go to Settings, then select Mail, Contacts, Calendars. Select the account you wish to remove. Select Delete Account. Select Delete from My iPhone. Deleting process may take several minutes depending on the size of the account.
Note 1: I have only run this on an on-premises Exchange 2007 server so I am not sure if it will work in 2010, 2013 or Office 365 but hopefully the script will come in handy anyway
How To Remove Activesync Partnership Exchange 2010
Note 2: This is my first ever PowerShell script so I am sure there are better ways of doing this but it does the job!
Okay so if you want to run a report on old devices (I have defined old as no successful sync in the past 30 days but you can change this to whatever you want) before you go ahead and remove them, run the following command:




Get-Mailbox|ForEach{Get-ActiveSyncDeviceStatistics-Mailbox:$_.Identity}|where{$_.LastSuccessSync-lt((Get-Date).AddDays(-30))} |
To actually remove these devices (this command removes the relationship between the device and Exchange – it will NOT wipe the device) run this command:
How To Remove Activesync Device Exchange 2013
2 4 | # Assign the full identity string for each of the old devices to the $staleDevices variable - this identity string is required for the Remove-ActiveSyncDevice cmdlet $staleDevices=Get-Mailbox|ForEach{Get-ActiveSyncDeviceStatistics-Mailbox:$_.Identity}|where{$_.LastSuccessSync-lt((Get-Date).AddDays(-30))}|select-expand Identity # Loop through the identities and pass them in to Remove-ActiveSyncDevice. The -confirm at the end forces the command to go through. Remove it if you want to manually confirm each removal foreach($device in$staleDevices){Remove-ActiveSyncDevice-Identity$device-confirm:$false} |
How To Remove Activesync Device Exchange 2010 Powershell
Related posts:
