How to get device-id, Microsoft 365

Jan Vávra 256 Reputation points

I am at 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?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,985 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,181 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. risolis 8,701 Reputation points

    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:

    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,


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

  2. Akshay-MSFT 17,086 Reputation points Microsoft Employee

    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, :



    • 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 )


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

    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.