473,666 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5247
On Fri, 15 Jul 2005 06:07:50 GMT, "Jozef" <SP**********@t elus.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_GetCompu terName Lib "kernel32" Alias
"GetComputerNam eA" (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_GetCompu terName(strBuff er, 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
4476
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 in advance, -- Wong
29
3730
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 Firefox/1.0 I only ask because I believe I could use the same info as part of a scheme to generate a unique (or at least less common) serialized id code for the user's computer as part of a software locking and activation system. If I had a DLL...
5
4471
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 other functions. All these information I will keep by Session = "2" Session = "Student"
2
5620
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 function as an arg to the unique function, I still see the duplicate objects. Shouldnt unique be aple to operate with just the less_than overload- since if both the predicates constant1 < constant2 and constan2 < constant1 return false implies...
9
12569
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 the information found in Windows system information? Or maybe there is a better method. Thanks in advance for any help or suggestions. Dave M.
18
7322
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 for my app. The program would produce a unique identifier for the computer, then I would psovide the user with a serial number unique to their machine. In other words I would like to check for things like: i) Hard disk (not volume) serial number...
4
2725
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 12345678,23456789,34567890... 2. check record-2 again record-1, check record-3 again record-2 & record-1 check record-4 again record-3 & record-2 & record-1 and so on... (if duplicated, drop it)
4
2366
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 then ship them out for most cases but some of our customers do provide their own machines.) Our concern is if somebody takes one of our machines and ghosts it so they have a complete copy of the machine, it will allow them to continue working. We...
2
1619
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 it is relevant, I have an object library DLL that performs a generic "error handling" process for each exception that is thrown by either itself, or by an application that is using the DLL. One of the pieces of information that the generic error...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8550
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8638
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6191
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2006
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.