Dataset
Microsoft Intune device management datasets for AI training
A Microsoft Intune dataset is an export of one tenant's device management records as Intune holds them: managed devices, compliance policies with per-device compliance states, configuration profiles and settings catalog policies with their assignments, app deployments, platform scripts and remediations with their per-device output, Autopilot registrations and audit events. SourceX sources it to a buyer's spec from established businesses that manage their devices with Intune. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Policies, scripts and apps from one Intune tenant with their assignments and per-device status, the managed device inventory and the audit trail of admin changes
- Typical systems
- Microsoft Intune for Windows, macOS, iOS and Android; Remediations, Windows Autopilot and co-management with Configuration Manager where used
- Typical history
- Specified by the buyer; Graph returns current state, so history comes from audit events, routed logs or dated backups the holder kept
- Modality
- Structured device, policy and status records; PowerShell and shell script source; script output and custom profile payloads as text
- Delivery formats
- Agreed per order; Graph JSON per object, JSONL or Parquet for per-device states, scripts as decoded text files
- Preparation
- User principal names, device names, serial numbers and MAC addresses pseudonymized; credentials, certificates and keys removed from scripts, profiles and install commands
- Licensing
- Rights reviewed per tenant, including personally owned devices and third-party scripts and app packages; permitted use set in the license
- Availability
- Sourced to your spec by platform, policy type and fleet size; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| object_type | enum | The Graph resource type of the record, such as deviceHealthScript, deviceCompliancePolicy, deviceConfiguration, deviceManagementConfigurationPolicy, mobileApp or detectedApp. |
| object_id | string | A stable token for the object's Graph id, the key its assignments, device states and auditEvent resources refer to. |
| definition | object | The object's own properties: a deviceConfiguration's typed settings or OMA-URI rows, or a settings catalog policy's settings by settingDefinitionId. |
| assignments | array | Targets from the object's assignments: included and excluded group IDs, all devices or all users, and any assignment filter. |
| detection_script | string | detectionScriptContent of a deviceHealthScript, decoded from base64 to PowerShell text. |
| remediation_script | string | remediationScriptContent of the same deviceHealthScript, decoded, with secrets removed and marked. |
| run_schedule | object | The runSchedule on the remediation's assignment: once, hourly or daily, with its interval. |
| managed_device | object | From managedDevice: a device token, operatingSystem, osVersion, model, managedDeviceOwnerType, enrolledDateTime and lastSyncDateTime. |
| detection_state | enum | detectionState from deviceHealthScriptDeviceState: unknown, success, fail, scriptError, pending or notApplicable. |
| pre_remediation_output | string | preRemediationDetectionScriptOutput and preRemediationDetectionScriptError: what detection printed before any fix ran. |
| remediation_state | enum | remediationState from the same row: unknown, skipped, success, remediationFailed or scriptError, with remediationScriptError. |
| post_remediation_output | string | postRemediationDetectionScriptOutput and postRemediationDetectionScriptError: what detection printed after the fix. |
| compliance_state | object | The managedDevice complianceState and its deviceCompliancePolicyState rows, with the state of each setting. |
| audit_events | array | auditEvent records naming the object: activityType, actor, activityDateTime, and resources with modifiedProperties. |
Field names from the table above; values are masked placeholders.
Example record
{
"object_type": "deviceHealthScript",
"object_id": "dhs_41c7",
"definition": {
"display_name": "Windows Update service disabled",
"publisher": "Endpoint team",
"run_as_account": "system",
"run_as_32_bit": false,
"enforce_signature_check": false
},
"assignments": [
{
"target": "group",
"group_id": "grp_ring2_windows",
"filter": null
}
],
"detection_script": "$s = Get-Service wuauserv\nif ($s.StartType -eq 'Disabled') { Write-Output 'wuauserv Disabled'; exit 1 }\nWrite-Output 'wuauserv OK'; exit 0",
"remediation_script": "Set-Service wuauserv -StartupType Manual\nStart-Service wuauserv\nWrite-Output 'wuauserv set to Manual'",
"run_schedule": {
"type": "daily",
"interval": 1
},
"managed_device": {
"device": "dev_9a12",
"operating_system": "Windows",
"os_version": "10.0.22631.3880",
"model": "[MODEL_14]",
"owner_type": "company",
"last_sync_date_time": "2024-10-02T06:14:09Z"
},
"detection_state": "fail",
"pre_remediation_output": "wuauserv Disabled",
"remediation_state": "success",
"post_remediation_output": "wuauserv OK",
"last_state_update_date_time": "2024-10-02T06:15:41Z",
"compliance_state": {
"state": "noncompliant",
"failing_settings": [
"Minimum OS version"
]
},
"audit_events": [
{
"activity_type": "Patch DeviceHealthScript",
"activity_date_time": "2024-09-20T13:02:11Z",
"actor": "admin_03"
}
]
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train fix-and-verify scripting
A detection script, its remediation and the output before and after on one device form a checked example of repairing a machine.
Diagnose noncompliance
Per-setting compliance states beside OS version, model and ownership show which rule a device fails.
Draft configuration policy
Settings catalog policies with their assignments are worked examples of turning a requirement into settings and a target group.
Predict where a script breaks
One script across a fleet returns different output and errors by OS build and hardware model.
Evaluate endpoint agents
Withhold the remediation and the post-remediation output, and grade a model's proposed fix against the recorded one.
Use-case guides: Enterprise and computer-use agents, Coding agents, Private evaluation sets
What makes this data valuable
Script source present
Detection, remediation and platform script content is included and decoded, not left empty by a list-only export.
Output on both sides
Pre-remediation output is populated on most device rows, and post-remediation output wherever a remediation ran.
Repeated snapshots
Device states were captured on a schedule, since Intune keeps only the latest run.
Assignments resolved
Group IDs come with the group's size or membership rule, and filters with their rule text.
Every policy model
Templates, settings catalog policies and compliance policies are each exported and labeled.
Audit with values
Audit events carry old and new property values, not only the activity name.
Process
Microsoft Intune dataset
A remediation records the check, the fix and the recheck on each device
An Intune remediation, a deviceHealthScript in Microsoft Graph and formerly called a proactive remediation, is a pair of PowerShell scripts. The detection script runs on a schedule on each assigned Windows device and reports through its exit code whether it found the problem: exit code 1 means found. Only then does the Intune Management Extension run the remediation script and run detection again. For every device, a deviceHealthScriptDeviceState row stores the detectionState, what detection printed before the fix in preRemediationDetectionScriptOutput, the remediationState with the remediation script's error stream, and what detection printed afterward in postRemediationDetectionScriptOutput. That is a measured symptom, a fix as code and a verification by the same measurement, all on one machine.
The limits come from how the row is kept. There is one row per script and device, holding the latest execution, so a single export is a cross-section of the fleet at one moment. The client reports a recurring script when its result changes and otherwise once in seven days, so the row's update time is not a run log. The run summary keeps counters, including devices where the issue recurred, but not the earlier rows. A time series exists only where the holder exported device states repeatedly. Output is capped at 2,048 characters, so careful authors print one summary line and careless ones print nothing, which leaves a state and no evidence. More detail stays in the Intune Management Extension logs on the device.
The row joins outward by ID. The script is assigned to Entra ID groups, so the population is defined in another system. The device ID reaches the managedDevice record for OS version, model, ownership and complianceState, and that compliance flag is what Entra ID Conditional Access reads when a policy requires a compliant device. Platform scripts, the deviceManagementScript type, are a different thing: one script that runs once per device unless it is edited, with a single result message and no recheck. Remediations run on Windows only and need a Windows Enterprise or Education license for the device's user, so they cover part of a fleet and are absent from some tenants.
Graph returns current state, in more than one policy model
Intune is read through Microsoft Graph, and Graph answers with objects as they stand now. Older configuration profiles are deviceConfiguration objects with a typed subclass per platform and template, where a custom Windows profile carries OMA-URI rows. Settings catalog policies are deviceManagementConfigurationPolicy objects, whose settings form a tree of settingDefinitionId strings and choice values that read as plain language only beside the setting definitions. Administrative templates and compliance policies are separate types again. A complete export walks every collection, and several have been served from Graph's beta endpoint, where shapes change.
List calls leave things out. Assignments come only when expanded or fetched per object. Script content is base64-encoded, and exports that listed scripts without requesting each one by ID have come back with the content empty, leaving script names with results and no source. Devices that were retired, wiped or removed by a cleanup rule drop out of managedDevices, and per-device policy status is the latest check-in, not a log.
History therefore comes from elsewhere, and each source has its own reach. Audit events record who created, edited, assigned or deleted an object, with old and new values in modifiedProperties, and are kept for a limited period. Diagnostic settings can route IntuneAuditLogs, IntuneOperationalLogs, IntuneDeviceComplianceOrg and IntuneDevices to a Log Analytics workspace, where retention is the holder's choice. The Intune Data Warehouse serves daily snapshots over a limited window. Some teams back up policies as JSON to a Git repository on a schedule, and those dated commits can be the longest change history there is. To test a sample, replay one policy's audit events forward to its current definition, check that script content is present, and compare state rows with the devices assigned.
What to check before licensing
- Ask which Graph collections were exported and from which endpoint, and confirm configuration profiles, settings catalog policies, administrative templates and compliance policies are each present.
- Ask how far back each history source reaches: audit events, Intune tables routed to Log Analytics, the Data Warehouse and any dated policy backups.
- Ask whether remediation device states were exported once or on a schedule, and what share of sample rows have empty pre-remediation or post-remediation output.
- Check that script content is present and decoded for every script in the sample, and that each settingDefinitionId resolves to a setting name.
- Search scripts, OMA-URI values, custom profile payloads, Win32 app install commands and script output for passwords, certificates, pre-shared keys and license keys.
- Check that user principal names, device names and serial numbers are removed everywhere, including script output and audit actor fields, since device names often embed a user's name.
- Have the buyer and the data owner each check Microsoft's terms on exported tenant data and API use, and the license of any script or app package taken from a third party.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Can I get the history of policy changes from Intune?
Partly. Microsoft Graph returns each policy as it is today, with a last modified time and no earlier versions. Change history comes from audit events, which record who changed which object and often the old and new property values, for as long as the tenant or a routed Log Analytics table keeps them. Ask which sources exist and their start dates.
Does a remediation record show whether the fix worked?
Yes, for the most recent run on each device. The device state holds what the detection script printed before the remediation, the remediation's state and errors, and what detection printed afterward. It describes the latest execution only, so repeated fixes on one machine show up only in a recurrence counter unless the holder exported states on a schedule.
Are script sources included, or only results?
They can be, and you should require them. Detection, remediation and platform scripts are held base64-encoded on the script object, and an export that only listed scripts may carry empty content, so check the sample. Win32 apps are different: the app record holds install commands and detection rules, and the package file does not come with it.
How do configuration profiles and settings catalog policies differ in an export?
They are different Graph resource types with different shapes. An older profile is a deviceConfiguration with named, typed properties for its template. A settings catalog policy is a deviceManagementConfigurationPolicy holding a tree of setting definition IDs and values, which need the definitions to read. A tenant in mid-migration has the same intent expressed both ways. Ask for both, labeled by type.
Are personally owned phones and laptops in the data?
They may be. Each managed device carries an ownership type of company or personal, and Intune collects less inventory from personal devices, but they still appear with a user, a model and compliance results. Decide whether personal devices are in scope, ask how they are flagged, and have the data owner confirm what its staff were told.
Is SourceX affiliated with Microsoft?
Microsoft Intune is named to identify the system the records come from. That does not imply a partnership with or endorsement by Microsoft. The records belong to the business that runs Microsoft Intune, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- Endpoint management and patching logs
Deployment jobs with per-device results, script runs with output, compliance evaluations and remote session records
- IT asset and configuration records
Configuration items, asset records, software installs and licenses, with typed relationships and discovery results
- Jamf Pro Apple device management records
Policies, scripts, configuration profiles, groups and extension attributes from one Jamf Pro instance, with the device inventory and policy logs they ran against
- Microsoft Entra ID sign-in and audit logs
Sign-in and audit logs from one Entra ID tenant, with risk detections and the Conditional Access policies and directory objects they refer to
- NinjaOne endpoint management records
A NinjaOne account's endpoint record: per-device activities, alerts from policy conditions, automation runs, OS and software patch installs, inventory, custom fields and tickets
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.