Are you coming from “Configuration Manager” (SCCM) background? And missing a feature called “Trigger Device Policy Sync” from SCCM Console? Are you looking for it in Intune? Tired of Syncing devices one by one from Intune console or asking end user to do it from “Work or School Account”?
Well, first thing first. Intune does it automatically after every 8 hours and one should have patience to wait for results.
Did I hear Urgent Sync!!!
This is actually doable.
All you need to do is PowerShell and Graph API to Automate. Let’s do this.
When we say sync in Bulk, first thing which comes to mind is “How do we define BULK here”. Well, the answer is simple. “All the machines where a deployment is configured should be synced”. So, “deployment” is the key element. Infact, the “Azure AD Group” where deployment is configured.
So, one method can be to pass the Azure AD “Group ID” and trigger all the devices which are part of this Group. Of Course, we are talking about Devices and not Users here. If we have Users in that group, just skip it. Further, if machines are there in Azure AD group but not enrolled in Intune, skip it again.
Also, there can be other sub requirements as well, for Instance; Sync only Windows Devices and skip for Android and iOS devices.
One such example is published below with version 1.0
Hope this helps!

Leave a comment