PowerShell · Intune · Graph API
Intune DeviceOS Report
PowerShell script for retrieving detailed Windows 11 device information from Microsoft Intune, including OS version, build number, KB updates, manufacturer, and smart recommendations.
v1.2
168 builds
GPL-3.0
What it does
The script connects to Microsoft Graph via the Intune API and creates a detailed CSV report of all managed devices, including feature update version, release date, KB number, and automatic recommendations.
Input methods
- CSV file – list of computer names from
Clients.csv - Manual entry – enter one or more devices directly
- Azure AD group – query all devices in an Entra ID group
Report fields
- OS version, feature update (22H2, 23H2, 24H2, 25H2), KB number, update type
- Serial number, manufacturer, model, primary user UPN
- Free disk space (GB), last Intune check-in
- Intune management status, Entra ID status, days since last check-in
- Recommended action – automatic recommendation based on device status
Build database
Includes 168 Windows 11 builds from 2022 to 2025: 78× 22H2, 60× 23H2, 26× 24H2, 4× 25H2.
Requirements
PowerShell 7.0+ · Microsoft Graph PowerShell SDK ·
Permissions: DeviceManagementManagedDevices.Read.All, Device.Read.All