---
title: "Run and schedule the Microsoft Intune sync"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/integrations/run-the-intune-sync/
type: task
application: integration_microsoft_intune
last_updated: 2026-10-18
commit: 5ea5eb0dd83d
---


Run the first Microsoft Intune import, check the CIs it creates and then let the job run on a schedule. This page is for administrators who have already connected Intune to Servicely.

## Before you begin

- You need the `administrator` role.
- The connection is set up and the **Auth token** property points at a token in the **Ready** state. See [Connect Microsoft Intune to the CMDB](page:integrations/intune).
- Agree with your configuration management stakeholders which device types and attributes the CMDB needs.

<Callout type="info">
  One job runs the sync. The **Is V2 Enabled** property decides what it runs. Cleared, the job runs V1, which reads fixed laptop and desktop endpoints from the properties. Selected, it runs V2, which reads each active **Intune Import Resource Configuration** record. [Microsoft Intune sync settings](page:integrations/intune-sync-settings) compares the two.
</Callout>

## Steps

<Steps>
  <Step>
    Go to **Microsoft Intune → Administration → Job**. Set **Active** to **No** and save, so the scheduled run waits until you have reviewed the first import.
  </Step>
  <Step>
    Go to **Microsoft Intune → Administration → Properties**. Select **Is V2 Enabled** to use V2, or clear it to use V1. The form shows the settings for the version you choose.
  </Step>
  <Step>
    For V2, set **Software Sync Enabled** if you want detected apps imported. Then open each record in the **Intune Device Configurations** list (**Desktops** and **Laptops** ship active). Check its **Endpoint** filter and set **Sync Software Installations** if you want app installations for that device type. Leave **Delta Enabled** off until a full sync has completed.
  </Step>
  <Step>
    For V1, review **Desktop API endpoint** and **Laptop API endpoint** so the `deviceType` filters cover every device type you need. To skip a device type, clear its endpoint. V1 also needs **Installed software API structure** set to `device` or `software`. Save the properties.
  </Step>
  <Step>
    On the job record, copy the **Script** value and run it once as a server script.
  </Step>
  <Step>
    With your configuration management stakeholders, review the CIs the import created. Check that the mapped fields are filled in and that the counts of laptops, desktops and software are close to what Intune shows.
  </Step>
  <Step>
    To map another Intune attribute, add it to the **Fields** value of the staging table and select **Delete temporary table**, then **Generate temporary table**. Add a mapping for it to the transform map of that staging table. To match devices on serial number instead of the Intune ID, make the serial number mapping the primary key.

    <Image src="asset:screenshots/admin/integrations-intune/image-11.png" size="66">The Fields value of the IntuneCMDBLaptop staging table with the attributes the integration imports by default.</Image>
  </Step>
  <Step>
    Go to the system table cleanup records and activate the four **Clean up intune … records** entries. Each removes staging rows older than seven days. Change the retention first if you need a different period.
  </Step>
  <Step>
    On the job record, change the **Cron expression** if once a day at 01:00 does not suit you. Set **Active** to **Yes** and save.
  </Step>
</Steps>

## Result

The job imports from Intune on its schedule. Devices land in `CMDBDesktop` and `CMDBLaptop`, detected apps in `CMDBEndUserSoftware` and app installations in `CMDBInstalledSoftware`, each CI with **External source** set to Intune. While a sync runs, the job and the properties form show **Stop all processing**, and a second run does not start until the first has finished. An administrator can open an Intune CI and select **Get Intune API payload** to see the data Intune returned for it.

<Callout type="warning">
  A cloned instance runs the same job. If a non-production clone should not sync, or should sync at other times, add a System Configuration Script on production that changes the job on the clone.
</Callout>

## Related

- [Connect Microsoft Intune to the CMDB](page:integrations/intune)
- [Microsoft Intune sync settings](page:integrations/intune-sync-settings)
- [System Table Cleanup](page:platform/system-table-cleanup)
- [Transform maps](page:environments/transform-maps)
