Unique Identifier for a computer.

U

UJ

I need to come up with a way to uniquely identify computers that can't be
hacked easily. Something like the system id or info from the CPU that is
then sent over the internet to a central database.

What we are trying to do is have a unique identifier that is machine based
that can't be changed.

Anybody have any thoughts?

TIA - Jeff.
 
M

Michael Nemtsev

Hello UJ,

Use the WMI to extract the Mother board ID, because the main MS policy to
bind software to that ID (not MAC or smth else)

Start from there http://msdn2.microsoft.com/en-us/library/aa394587.aspx


U> I need to come up with a way to uniquely identify computers that
U> can't be hacked easily. Something like the system id or info from the
U> CPU that is then sent over the internet to a central database.
U>
U> What we are trying to do is have a unique identifier that is machine
U> based that can't be changed.


---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangel
 
U

UJ

Does anybody have this code in either C# or VB.Net ? I'm not sure how to do
VBScript.

Thanks.

J.
 
U

UJ

Thanks but I've the code on 10 different machines and only gotten two
distinct values. It looks like that ID is not a serial number for the CPU
but instead is a process type id. I need the serial # of the CPU.

J.
 
G

Goran Sliskovic

UJ said:
Thanks but I've the code on 10 different machines and only gotten two
distinct values. It looks like that ID is not a serial number for the CPU
but instead is a process type id. I need the serial # of the CPU.

CPU serial number is not implemented any more, because of security concerns:
http://www.cdt.org/privacy/issues/pentium3/

I use computer SID usually. However, SID is changable, but if somebody wants
to crack, he will crack :)

Regards,
Goran
 
M

Michael Nemtsev

Hello UJ,

Could you show the code that u use?
Smth like this http://www.freevbcode.com/ShowCode.asp?ID=2664? SerialNumber
property?

U> Than
ks but I've the code on 10 different machines and only gotten two
U> distinct values. It looks like that ID is not a serial number for the
U> CPU but instead is a process type id. I need the serial # of the CPU.
U>
---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 
U

UJ

The code I'm using is:


public string GetCPUID()
{
string lsCPUID = "";
try
{
ManagementObjectCollection moReturn = null;
ManagementObjectSearcher moSearch = new ManagementObjectSearcher();

moSearch = new ManagementObjectSearcher("Select * from
Win32_Processor");
moReturn = moSearch.Get();
foreach ( ManagementObject mo in moReturn )
{
lsCPUID = mo["ProcessorID"].ToString();
}
}
catch
{
}

return lsCPUID;
}



and it's doesn't return a unique ID.




Michael Nemtsev said:
Hello UJ,

Could you show the code that u use?
Smth like this http://www.freevbcode.com/ShowCode.asp?ID=2664?
SerialNumber property?

U> Than
ks but I've the code on 10 different machines and only gotten two
U> distinct values. It looks like that ID is not a serial number for the
U> CPU but instead is a process type id. I need the serial # of the CPU.
U>
---
WBR, Michael Nemtsev [C# MVP]. My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 
U

UJ

I originally was looking for code to use the SID but couldn't figure out how
to get it.

Could you please post code to get the SID?

If somebody hacks this stuff, then so be it. I just need a unique ID that
the casual user can't change easily (like computer name).

TIA - Jeff.
 
M

Michael Nemtsev

Hello UJ,

Use "select SerialNumber from Win32_BaseBoard". It should give u unique value

U> The code I'm using is:
U> moSearch = new ManagementObjectSearcher("Select * from
U> Win32_Processor");
U> and it's doesn't return a unique ID.

---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top