Script Update: Automatically remind users to update iOS with e-mails and custom notifications using Microsoft Intune Powershell SDK

Introduction

If you already use or intend to use my script, which reminds users to update iOS with e-mails and custom notification, you will want to use the updated script. 🙂

I obviously put the script to use in production, and quickly realized that the script also picks up obsolete devices. This is not ideal, as you might end up in a situation where a user is reminded by e-mail, to update a device which is obsolete and no longer in use.

So the script has been updated to cater for this situation, and now only picks up devices which has been syncing with Microsoft Intune within the last 2 days.

Changes

  • Now counting days since last synchronization with Microsoft Intune
    • This is hard coded to only grab iOS devices which has checked in with Intune the last 2 days. Change this to suit your needs

  • Added $testMode for quickly turning test mode on and off
    • I personally needed this to test the script more sufficiently without having to modify the script too much
    • When set to $true, the script only grabs devices belonging to a specific UPN ($testUPN) and overrides the baseline version

Changes in Action

A quick snip of the updated script in action running with Azure Automation. Stuff is obfuscated as this is run in production 🙂

Download

I’m still making my way to GitHub, so the script is still available for download on TechNet Gallery:

https://gallery.technet.microsoft.com/Send-custom-notifications-76fee471

ENJOY 🙂

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.