Skip to main content

Intune

PowerShell for administering Microsoft Intune via Microsoft Graph. Every script here uses Microsoft.Graph.Authentication and raw Graph calls rather than the full SDK — fewer modules to keep current, and the endpoints are visible in the code (see Microsoft 365 — Overview & Connection).

Scripts​

A recurring shape​

Three of these answer the same kind of question in different places: is the control you configured actually reaching anything? An unassigned configuration profile, an application targeting an empty group, a compliance policy that no device has evaluated — all look correct in the portal and govern nothing.

The BitLocker script is the exception and the most urgent: it answers whether you can recover a machine you have already encrypted, which is only ever asked at the worst possible moment.

Tip — Graph chooses its own page size here

The Intune endpoints ignore large $top values and page regardless, so every script follows @odata.nextLink. A single-page read silently truncates a large estate, which is the one failure mode that makes an estate report worse than useless.