Report · 2 tools
Export Windows Autopilot devices with group tags
Summary
Exports every Autopilot device with serial number, model, group tag and profile assignment status. Use it to check readiness before a device migration and to find devices still registered in the old tenant.
Implementation
Choose your tool. Your choice is remembered on other samples.
Connect-MgGraph -Scopes DeviceManagementServiceConfig.Read.All -NoWelcome
Get-MgDeviceManagementWindowsAutopilotDeviceIdentity -All |
Select-Object SerialNumber, Manufacturer, Model, GroupTag, EnrollmentState,
DeploymentProfileAssignmentStatus, LastContactedDateTime, AzureActiveDirectoryDeviceId |
Export-Csv .\autopilot-devices.csv -NoTypeInformationGET https://graph.microsoft.com/v1.0/deviceManagement/windowsAutopilotDeviceIdentities
# Permission: DeviceManagementServiceConfig.Read.AllPrerequisites
- Graph scope DeviceManagementServiceConfig.Read.All
Output
CSV of Autopilot devices.
Related answers
Contributors
| Author | Role |
|---|---|
| Priyanshu Upadhyay | Solution Architect, Microsoft 365 and Azure |
InnovaticT