Export list of devices with assigned profile name

Boopathi Subramaniam 3,216 Reputation points
2020-10-01T16:49:42.14+00:00

Hi,

If I export devices from aka.ms/intune/Home -> Devices -> Enroll Devices -> Windows Autopilot devices then i am getting the below columns
Serial number
Manufacturer
Model
Group Tag
Profile status
Purchase order

How can i export all the devices with assigned profile name
29657-capture.jpg

Please help

Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,279 questions
0 comments No comments
{count} votes

Accepted answer
  1. Crystal-MSFT 44,831 Reputation points Microsoft Vendor
    2020-10-02T07:02:03.537+00:00

    @Boopathi Subramaniam , Based on my research, I find we can export all the devices with assigned profile name via the following PowerShell command:

    1. Install the module WindowsAutoPilotIntune
      Install-Module windowsautopilotIntune
    2. Connect to Intune:
      Connect-MSGraph
    3. Enter the account that has permission to access your organization to login.
    4. Run the following command to list all the Autopilot Profile name and its id.
      Get-AutopilotProfile | fl displayname,id
    5. Find the id of the Autopilot profile name and run the following command to list all the devices with the assigned profile
      Get-AutopilotProfileAssignedDevice -id <Autopilot profile id>
      Note: we can also filter the export result to only display the information you want.
      29861-image.png

    Hope it can help.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2020-10-01T17:20:08.51+00:00

    I believe that you'll need to use a custom PowerShell report to get this info. MS provides sample reports at:
    https://github.com/microsoftgraph/powershell-intune-samples/tree/master/ManagedDevices
    and look at the ManagedDevices_Get.ps1 script.

    1 person found this answer helpful.
    0 comments No comments

  2. Chned 46 Reputation points
    2022-08-04T14:06:38.067+00:00

    How can I do this for Assigned Users?

    0 comments No comments