How to get device-id, Microsoft 365

Jan Vávra 386 Reputation points
2022-11-04T09:51:07.673+00:00

I am at https://myaccount.microsoft.com/device-list and I'd like to compare with physical devices I am using.
I've tried

wmic path win32_computersystemproduct get uuid

But resulted uuid is not listed at device list page.
What command I should use?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. risolis 8,741 Reputation points
    2022-11-05T23:43:07.003+00:00

    Hello @Jan Vávra

    Thank you for sharing this question on this community space.

    I would like to provide the next articles which fit into your previous case scenario description given.... So please direct yourself down below:

    https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/machines-view-overview?view=o365-worldwide

    https://learn.microsoft.com/en-us/microsoft-365/security/defender-business/mdb-get-started?view=o365-worldwide

    Furthermore, I wonder if you have any Conditional policy access configured or any exclusion filter for your set up....

    Finally, the license used can be a relevant detail in order to discard any unexpected behavior observed.

    I hope you can find this helpful for you to overcome your concern.

    Looking forward to your feedback,

    Cheers,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  2. Akshay-MSFT 17,956 Reputation points Microsoft Employee Moderator
    2022-11-22T09:34:54.647+00:00

    Hello @Jan Vávra ,

    Kindly try the following steps:

    • Open CMD on the device you want to fetch details for and run dsregcmd /status. This will give you the device name and Azure AD device ID, :

    262968-image.png

    262969-image.png

    • Now launch PowerShell and run Connect-AzureAD authenticate with your credentials.
    • Run Get-AzureADDevice -ObjectId "Enter ObjectID GUID copied in above step"
    • The output would show Object ID mapped to device ID ( you got in step 1 )

    262970-image.png

    Let me know if you have any queries in the comments section.

    Thanks,
    Akshay Kaushik

    Please "Accept the answer" ,"Upvote" and rate your experience if the suggestion works as per your business need. This will help us and others in the community as well.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.