By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,849 Members | 2,361 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,849 IT Pros & Developers. It's quick & easy.

Acquiring some sort of unique machine ID?

P: n/a
Hello,

Is there any way to acquire a unique Machine ID, Hard Drive ID or Windows
Installation ID? Im looking for a way to uniquely identify a physical
installation and connection. The problem with using user names is that the
user can travel in the network. The problem using machine name is that
there can be two of the same machine name on the network (using TCP/IP only
, no Netbeui).

Any help would be great! Thanks!
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Fri, 15 Jul 2005 06:07:50 GMT, "Jozef" <SP**********@telus.net>
wrote:
Hello,

Is there any way to acquire a unique Machine ID, Hard Drive ID or Windows
Installation ID? Im looking for a way to uniquely identify a physical
installation and connection. The problem with using user names is that the
user can travel in the network. The problem using machine name is that
there can be two of the same machine name on the network (using TCP/IP only
, no Netbeui).

Any help would be great! Thanks!

Presumably you would like an id for the PC rather than for its network
connection.
The NIC is usually used for this purpose. Network card IDs are unique,
just be aware that when you read it in code you get a stored version
which may have been changed (unlikely) rather than the unique version
in the actual device eprom. The same is true of other hardware serial
numbers. There is a long recent thread on this (search for MAC or
NIC).
Intel tried introducing a unique id on the P3 chips, but in spite of
the fact that making it readable was under user control, they were
shouted down.
David

Nov 13 '05 #2

P: n/a
Jozef wrote:
Hello,

Is there any way to acquire a unique Machine ID, Hard Drive ID or Windows
Installation ID? Im looking for a way to uniquely identify a physical
installation and connection. The problem with using user names is that the
user can travel in the network. The problem using machine name is that
there can be two of the same machine name on the network (using TCP/IP only
, no Netbeui).

Any help would be great! Thanks!


Declare Function WinAPI_GetComputerName Lib "kernel32" Alias
"GetComputerNameA" (ByVal sBuffer As String, lSize As Long) As Long

Function MachineName() As String
Dim lngNameSize As Long
Dim lngX As Long
Dim strBuffer As String

strBuffer = Space$(255)
lngNameSize = Len(strBuffer)
lngX = WinAPI_GetComputerName(strBuffer, lngNameSize)
MachineName = Left$(strBuffer, lngNameSize)

End Function

--
[OO=00=OO]
Nov 13 '05 #3

P: n/a
Trevor Best wrote:
Jozef wrote:
The problem using
machine name is that there can be two of the same machine name on the
network (using TCP/IP only , no Netbeui).


Didn't spot that bit.

--
[OO=00=OO]
Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.