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
- Device Compliance and Sync — which devices are non-compliant, and which have simply stopped reporting.
- BitLocker Recovery Key Escrow — which encrypted devices have a recovery key you can actually retrieve, and which do not.
- Configuration Profile Assignments — profiles, who they target, and the ones assigned to nobody.
- Application Deployment Status — what is installing, what is failing, and on how many devices.
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
$topvalues 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.