Unique ID for Computers

Posted on 1999-12-28
Medium Priority
Last Modified: 2012-06-27
Now I am developing a program registration routine which will generate an unique ID for every computer. Currently I am generating that number based on the Hard-Disk serial number. But in some computers, I am getting unexpected values like exponential values, nothing etc.

Is there any other way to identify a computer uniquely? (any file or registry enties?)
Question by:sivaramy
LVL 14

Expert Comment

ID: 2309691
You could go "web-based" and have your software connect to your website and request a serial number.  A CGI program on the website would then "issue" a number...

If you're interrested, let me know.


Expert Comment

ID: 2309812
What is the intent behind this registration serial number?

You could create your own serial number that is stored in the registry; and base it off some information they enter, like company name, address, date and time, etc...  You could have the user enter the serial number physicaly printed on the side of the PC.

In the past, I have provided the user with a registration key that was based off of their company name, and date of registration.  That way, given the registration key, I could identify the company.

Expert Comment

ID: 2310924
Could you use the NIC address? or part of a GUID?
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.


Expert Comment

ID: 2311742
Why couldn't you just base it on their First/Last name.
their serial number would be the ASCII value of each letter of their name compounded togather with a hyphen between their first and last names.

i.e.       44553256-38462997


Accepted Solution

cvidler earned 100 total points
ID: 2316313
I use a GUID (you know all those real long number you see in the registry)

a 128-bit number is not unique - but for the next trillion years it is good enough!!!

I don't have my code with me - but I got a VB class module that will generate GUID numbers.

No two computers will generate the same GUID - because they are linked tot he time/date, NIC card, and other numbers Windows thinks up.

But the problem is each time one is generated it will be different - so you will still have to store the number somewhere...

Anyways if you want the code say so and I'll post it once I dig it up...


Expert Comment

ID: 5104259
I need a similar code/sample too. Can you please send me one?

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question