Thursday, December 20, 2012

Remove Orphaned ActiveSync Devices

Remove all devices those haven’t synced with the server for more than 30 days. Approach is like below:
  1. Identify the users who’s activesync devices have not synced over last 30 days.
  2. Notify them about the removal and they should also know what devices are associated with their mailbox those will be removed.
  3. Remove the device after a notification is sent
  4. Log what was removed and who’s mailbox was processed

Download the Script from hereimage



What you just need to do is change following information in the script at each of line number mentioned below:
105 – Company Policy Link
148 – Internal Phone Number
150 – External Phone Number
155 – Helpdesk Email Address
176 – Remove -WhatIf parameter
180 – Change the name of Hub Transport Server
143 – Change the name of Hub Transport Server
 
An output email that is sent out looks like below.

image

Source: http://www.msexchangegeek.com
 

No comments:

Post a Comment