Share via


Script to report bad Apples!

You may have seen Microsoft Support article “Current issues with Microsoft Exchange ActiveSync and Third Party Devices”. It documents multitude of problems with third party devices using ActiveSync. the list includes everyone’s favorite fruit devices that starts with an “i”. Shouldn’t be a surprise right?

So I was asked recently to help with a script that can report all devices in the environment that matches certain version. The version needs to be provided by user of the script alongwith name of the mailbox server. Optionally script will also send an email to administrator’s email address using provided SMTP server.

The script I created does just that. And I believe I have named it appropriately to report bad apples! Smile

Here are some examples of how you can run it. Since I don’t own any "fruit” devices, I have made up version numbers from my vague knowledge of it. Replace them with correct numbers as necessary.

 
PS C:\> Report-BadApples -Comptername Server1 -BadDevices "801.293","801.294"
PS C:\> Report-BadApples -Comptername Server1 -BadDevices "801.293" -EmailTo admin@contoso.com -EmailFrom system@contoso.com -SMTPServer smtp.contoso.com

You can download the script here: Report-BadApples.ps1