What it works with
Module: Microsoft.Graph.Authentication
Context: PowerShell 7 · Microsoft Graph · Microsoft Intune
Compatibility: PowerShell 7 is the supported target for this Microsoft Graph Intune template.
Exports Intune device compliance policies with assignment targets, preserving unassigned policies and per-policy read failures in a stable CSV report.
Generated locally in your browser · Review before running · No tenant access
Exports Intune device compliance policies with assignment targets, preserving unassigned policies and per-policy read failures in a stable CSV report.
Configure Export Intune compliance policies and assignments in the Builder, review the generated PowerShell and run it in your own environment.
Use this report to inventory compliance policies and see whether each policy is unassigned or targeted to a group, all users or all devices. Assignment target IDs stay visible without adding a broader directory-read permission.
The template uses Microsoft.Graph.Authentication and requires DeviceManagementConfiguration.Read.All. Output: CSV report. Level: Intermediate. Action: Read-only. Risk: Low.
The script is generated in your browser. Read it before you run it, and test it outside production first. “Read-only” describes the script itself; anything you add around it can still change data.
The script is generated locally in your browser. Nothing needs to be uploaded to Opselith.
Generate Export Intune compliance policies and assignments →Exports Intune device compliance policies with assignment targets, preserving unassigned policies and per-policy read failures in a stable CSV report. Review these details before generating or running the script.
Module: Microsoft.Graph.Authentication
Context: PowerShell 7 · Microsoft Graph · Microsoft Intune
Compatibility: PowerShell 7 is the supported target for this Microsoft Graph Intune template.
Permissions: DeviceManagementConfiguration.Read.All
Risk: Low
Execution impact: Read-only. The script reads Microsoft Intune data through Microsoft Graph and does not intentionally change policies, applications, enrollment records or managed devices.
Output: CSV with PolicyId, DisplayName, PolicyType, Version, timestamps, assignment target type/ID, assignment filter metadata, Status and Error.
This template is available in the free library and is generated locally in your browser.
Exports Intune device compliance policies with assignment targets, preserving unassigned policies and per-policy read failures in a stable CSV report.
Enter the required values in the Builder, review the generated script and confirm the output before running it.
Runtime and community evidence change only after an external tester result is reviewed and accepted for release evidence.
Tester: report a result →