HighTechTalks DotNet Forums  

Unique Identifier for a computer.

Dotnet Framework microsoft.public.dotnet.framework


Discuss Unique Identifier for a computer. in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
UJ
 
Posts: n/a

Default Unique Identifier for a computer. - 02-13-2007 , 09:44 AM






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.



Reply With Quote
  #2  
Old   
Michael Nemtsev
 
Posts: n/a

Default Re: Unique Identifier for a computer. - 02-13-2007 , 10:17 AM






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



Reply With Quote
  #3  
Old   
UJ
 
Posts: n/a

Default Re: Unique Identifier for a computer. - 02-13-2007 , 01:12 PM



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

Thanks.

J.

"Michael Nemtsev" <nemtsev (AT) msn (DOT) com> wrote

Quote:
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) Michelangelo





Reply With Quote
  #4  
Old   
UJ
 
Posts: n/a

Default Re: Unique Identifier for a computer. - 02-15-2007 , 10:02 AM



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.

"Michael Nemtsev" <nemtsev (AT) msn (DOT) com> wrote

Quote:
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) Michelangelo





Reply With Quote
  #5  
Old   
Goran Sliskovic
 
Posts: n/a

Default Re: Unique Identifier for a computer. - 02-15-2007 , 12:19 PM




"UJ" <fred (AT) nowhere (DOT) com> wrote

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






Reply With Quote
  #6  
Old   
Michael Nemtsev
 
Posts: n/a

Default Re: Unique Identifier for a computer. - 02-15-2007 , 02:35 PM



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

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




Reply With Quote
  #7  
Old   
UJ
 
Posts: n/a

Default Re: Unique Identifier for a computer. - 02-15-2007 , 02:40 PM



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" <nemtsev (AT) msn (DOT) com> wrote

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


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





Reply With Quote
  #8  
Old   
UJ
 
Posts: n/a

Default Re: Unique Identifier for a computer. - 02-15-2007 , 02:41 PM



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.

"Goran Sliskovic" <gsliskov (AT) yahoo (DOT) com> wrote

Quote:
"UJ" <fred (AT) nowhere (DOT) com> wrote in message
news:uBCnNJRUHHA.3316 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
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







Reply With Quote
  #9  
Old   
Michael Nemtsev
 
Posts: n/a

Default Re: Unique Identifier for a computer. - 02-15-2007 , 02:55 PM



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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.