Get the Processor / Bios MAC using C#
-
Hi, I would like to get a unique ID from my computer but I am not sure if the network MAC is a good idea because many people change network cards, similarly with he hard disk so I thought if possible to get the Processor / Bios MAC address? Is this possible? How please? Thanks, Jassim
Technology News @ www.JassimRahma.com
-
Hi, I would like to get a unique ID from my computer but I am not sure if the network MAC is a good idea because many people change network cards, similarly with he hard disk so I thought if possible to get the Processor / Bios MAC address? Is this possible? How please? Thanks, Jassim
Technology News @ www.JassimRahma.com
Neither processors nor BIOS have MAC addresses - they are unique to networking equipment (and even then only have to be unique within a LAN segment, and are easily spoofed). You can get the Processor Serial Number as uchlike information though: How To Get Hardware Information (CPU ID, MainBoard Info, Hard Disk Serial, System Information , ...)[^]
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
Hi, I would like to get a unique ID from my computer but I am not sure if the network MAC is a good idea because many people change network cards, similarly with he hard disk so I thought if possible to get the Processor / Bios MAC address? Is this possible? How please? Thanks, Jassim
Technology News @ www.JassimRahma.com
get processor id is possible. The following code will retrieve the CPU ID (processor id):
ManagementObjectCollection mbsList = null;
ManagementObjectSearcher mbs = new ManagementObjectSearcher("Select * From Win32_processor");
mbsList = mbs.Get();
string id="";
foreach (ManagementObject mo in mbsList)
{
id = mo["ProcessorID"].ToString();
}