Herfried is right; there's really isn't a good "unique" identifier for a machine. In the recent past, the industry wanted to add some unique identifiers to CPUs, but privacy issues led to a reconsideration of that plan. (Thus I second Herfried's comments -- maybe there's a better solution for what you're trying to do.)
Incidentally, getting the machine name is simple enough when using the newly released VS2005 (which you can check out for free, in Express Edition form, from
http://msdn.microsoft.com/vstudio/express) -- something like the following would work:
Dim s as string = My.Computer.Name
--Matt Gertz--*
VB Compiler Dev Lead
-----Original Message-----
From: Herfried K. Wagner [MVP]
Posted At: Monday, November 14, 2005 12:16 PM
Posted To: microsoft.public.dotnet.languages.vb
Conversation: Need help finding a unique PC ID.
Subject: Re: Need help finding a unique PC ID.
"dave m" <da***@nexcortech.com> schrieb:
I need to be able to retrieve a unique ID from a users PC. I needs to be
something a user could not easily change, like the computer name. Could
someone point me in the right direction to find the information found in
Windows system information? Or maybe there is a better method.
There is not a single unique ID. Some CPUs have an ID, other machines which
have a network card have a (hopefully) unique MAC ID, ...
I am curious why you would want to determine a unique ID. Maybe there is a
better solution.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>