Intune Device Sync Tool

Let’s say you want to push an important change as-soon-as-possible… If you have worked with Microsoft EndPoint Configuration Manager (MECM) you are well aware of the possibility to initiate a machine policy sync to receive the latest changes, but with MEM we do not have the option to do that on bulk devices…

This tool will use the MSGraph PowerShell module to initiate a device sync on either multiple or a single device!

Let’s rock enroll!

Pre-requisites

Let’s start off by installing the Microsoft.Graph.Intune PowerShell module.
More info on the module is found here: microsoft/Intune-PowerShell-SDK: Native PowerShell support for invoking Microsoft Intune Graph API to enable IT Pro scenario automation. (github.com)

  1. Run: PowerShell as admin
  2. Run: Install-Module Microsoft.Graph.Intune
  3. Accept by pressing Y and Enter
  4. If prompted again, press A and Enter
  5. Run: Import-Module Microsoft.Graph.Intune
  6. Run: Get-Module -Name *
  7. Make sure that Microsoft.Graph.Intune is in the list
  8. Now we must give MSGraph our consent to connect to our tenant
  9. Run: Connect-MSGraph -AdminConsent
  10. Sign in with an admin account and accept

Download the Intune Device Sync Tool

Let’s download the tool from GitHub ⭐

❗ You may need to approve the tool in MDAC/AppLocker or any ASR-rules – the source code is found on GitHub.

  1. Navigate to GitHub: NicklasAhlberg/Microsoft-Endpoint-Manager (github.com)
  2. Click: MEM-Device-Sync-Tool
  3. Click: MEM-Device-Sync-Tool.zip
  4. Click: Download
  5. Extract the zip-file and run the tool
  6. Click: Connect
  7. Sign in (note that you will need the Intune Administrator role)
  8. To sync devices in bulk: Click the corresponding logo
  9. To sync a single device: Click the checkbox and write the device name in the text box
  10. Click: sync when you are ready
  11. Done!

New features will be added over time and hope to get a lot of feedback from ya’all to make the tool as good as it possibly could be.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.