How do you find the computer id on windows 10 RRS feed

All replies

  • Through pwershell you can get the id, here is the query.

    Get-WmiObject -query 'select ClientMachineID from SoftwareLicensingService'

    if you want to do it through code then search "WMI programming" and you will be able to do it.

    Wednesday, May 10, 2017 2:55 AM
  • Hi,

    Thank you for posting here.

    you can use it with another hardware identifier to create your own unique key.

    Reference assembly System.Management

    use this code to get the CPU ID:

    string cpuInfo = string.Empty;
    ManagementClass mc = new ManagementClass("win32_processor");
    ManagementObjectCollection moc = mc.GetInstances();
    foreach (ManagementObject mo in moc)
         cpuInfo = mo.Properties["processorID"].Value.ToString();

    Then use this code to get the HD ID:

    string drive = "C";
    ManagementObject dsk = new ManagementObject(
        @"win32_logicaldisk.deviceid=""" + drive + @":""");
    string volumeSerial = dsk["VolumeSerialNumber"].ToString();

    you can just combine these two serials to get a uniqueId for that machine:

    string uniqueId = cpuInfo + volumeSerial

    Best Regards,


    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Wednesday, May 10, 2017 5:38 AM
  • Your machine ID is your Ethernet ID/MAC address: 6 pairs of numbers and letters A-F. You may see the pairs un-separated (d312a930bc7f), separated by colons (d3:12:a9:30:bc:7f) or separated by dashes (d3-12-a9-30-bc-7f).

    Go to the Start menu, then in the search box type "cmd" and hit Enter. In the cmd window, type "ipconfig /all". Find the line that reads "Physical Address".
    Sunday, June 10, 2018 3:36 PM
  • Actually the MAC address is NOT the machine ID as a machine can have multiple mac addresses. Using the MAC address would also be a problem if you changed your NIC
    Wednesday, August 22, 2018 4:34 AM
  • Thank you. What worked for me was to type ipconfig/all as one word, no spaces. 
    Sunday, August 25, 2019 7:02 AM