You should be able to use Get-AutopilotDevice and Get-ManagedDevices from MSGraph (Connect-MSGraph)
Also don' forget you can easily do it from the portal as well.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
What are the ways to export Autopilot Enrolled Devices and All the devices in Intune. Also provide the powershell command.
I tried the below and unable to get help of it.
https://gallery.technet.microsoft.com/scriptcenter/Intune-Export-MAM-Devices-3f0b9ba2
https://techwizard.cloud/2019/07/03/microsoft-intune-powershell-module/
You should be able to use Get-AutopilotDevice and Get-ManagedDevices from MSGraph (Connect-MSGraph)
Also don' forget you can easily do it from the portal as well.