473,326 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Acquiring some sort of unique machine ID?

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
3 5220
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Joe Wong | last post by:
Hi, I need to implement a unique number generator that 1 or more processes on same or different machines will make use of it. Is there any library / project available already for this? Thanks...
29
by: Lauren Wilson | last post by:
Does anyone know how the following info is extracted from the user's computer by a Front Page form? HTTP User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107...
5
by: Newton | last post by:
Hi, I got here the following problem. I am programming web application for examing students. After student will log on I need to keep his ID, Privileges, Login, Password for manipulating with...
2
by: Suma | last post by:
A newbie question : I have a vector of objects(pointers) . I have a function which overloads the less than operator . I can sort the objects without a problem. However when I pass the same...
9
by: dave m | last post by:
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 ...
18
by: JJ | last post by:
Now I know this question has been asked many times, but I cannot seem to find a good site which summarises the methods possible in vb .net. I am after a way of producing a unique serial number...
4
by: Tony WONG | last post by:
i have a number of forms with fax numbers to come up into arrays and then combine to string. after that i design the flow 1. break the string to array now the string looks like this...
4
by: Mufasa | last post by:
I'm looking for a way to get a truly unique identifier for a machine for our client software. I'd like to have it so that there's little or no setup by the end user. (We set up the machines and...
2
by: jason | last post by:
Hello everyone, I am writing to discover if there is a way, through System libraries or some other method, to acquire the name of the local machine from within an object library DLL. In case...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.