PC Review


Reply
Thread Tools Rate Thread

Retrieve Hard Disk Serial Number or othe unique PC identifier - XP & 2K

 
 
Paul Bromley
Guest
Posts: n/a
 
      9th Dec 2006
Ok - I have given up on trying to find the active IP address for a given PC.
For licensing purposes I need to retrive a unique identifier from the PC
that the program is installed on. The Hard disk serial number would do fine,
but on Googling it seems that some of the sample code will now laways work
on W2K, and not without administrator rights.

Hence my question - how can I consistently get a UNIQUE PC identifier using
vb.net 2003 - not bothered what the idnetifier is providing that it works
100% of the time on XP and W2K.

Best wishes


Paul


 
Reply With Quote
 
 
 
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      9th Dec 2006
Paul,

This is often asked although to get the harddisk serial number is as easy as
all serial numbers don't have all hard disk serial numbers. The same is for
processor numbers.

In fact there is not one hard address on the computer you surely can test
beside maybe the Mac address of a network adapter.

Be aware that your approach can lead that clients turning away from you,
because they are completely 24 hours 7 days a week depending from you or
your helpdesk, who surely should be done by professionals (expensive
persons). If not you can be bailed for high amounts of money if there goes
something wrong, and in this case not only in the USA.

Cor

"Paul Bromley" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> Ok - I have given up on trying to find the active IP address for a given
> PC. For licensing purposes I need to retrive a unique identifier from the
> PC that the program is installed on. The Hard disk serial number would do
> fine, but on Googling it seems that some of the sample code will now
> laways work on W2K, and not without administrator rights.
>
> Hence my question - how can I consistently get a UNIQUE PC identifier
> using vb.net 2003 - not bothered what the idnetifier is providing that it
> works 100% of the time on XP and W2K.
>
> Best wishes
>
>
> Paul
>



 
Reply With Quote
 
 
 
 
Robinson
Guest
Posts: n/a
 
      9th Dec 2006
If you want some protection, consider using a hardware dongle. USB dongles
are small and quite cheap these days. Of course it all depends on the value
of each sale for your software. If it's expensive, it obviously won't be
worth it.

"Paul Bromley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Ok - I have given up on trying to find the active IP address for a given
> PC. For licensing purposes I need to retrive a unique identifier from the
> PC that the program is installed on. The Hard disk serial number would do
> fine, but on Googling it seems that some of the sample code will now
> laways work on W2K, and not without administrator rights.
>
> Hence my question - how can I consistently get a UNIQUE PC identifier
> using vb.net 2003 - not bothered what the idnetifier is providing that it
> works 100% of the time on XP and W2K.
>
> Best wishes
>
>
> Paul
>



 
Reply With Quote
 
The Frog
Guest
Posts: n/a
 
      11th Dec 2006
Have you considered using a cryptographic type approach? It may be
possible, for example, to generate a unique identification key for the
machine, say based on a few different factors like the MAC address, the
machine name, and the capacity of the C: hard drive, then use some
simple obfuscation method to hide how you did it, store the key in the
registry if needed, and send a copy to yourself so you have it on
record.

That may prove to be a relatively cheap, effective way to "lock down"
licensing issues.

For the "authorisation" component you could have the software require a
counter-key that comes from you. Use something like public / private
key pairs, or Diffie Hellman, and then let the client install validate
itself based on the response. With Diffie Hellman, the agreed key could
be sent back with the "public" part of your half of the authorisation,
which also serves to make the authorisation key nice and long.

This should be able to be coded quite easily with a little time. There
are plenty of maths libraries available to do the number crunching for
you.

I hope that this helps

Cheers

The Frog

 
Reply With Quote
 
=?Utf-8?B?TWljaGVsIFBvc3NldGggW01DUF0=?=
Guest
Posts: n/a
 
      11th Dec 2006
well , i would go for the manufacturer id of the harddisk

in this case the program would only fail if the harddiks is replaced in the
system


http://www.winsim.com/diskid32/diskid32.html


regards

Michel




"Paul Bromley" wrote:

> Ok - I have given up on trying to find the active IP address for a given PC.
> For licensing purposes I need to retrive a unique identifier from the PC
> that the program is installed on. The Hard disk serial number would do fine,
> but on Googling it seems that some of the sample code will now laways work
> on W2K, and not without administrator rights.
>
> Hence my question - how can I consistently get a UNIQUE PC identifier using
> vb.net 2003 - not bothered what the idnetifier is providing that it works
> 100% of the time on XP and W2K.
>
> Best wishes
>
>
> Paul
>
>
>

 
Reply With Quote
 
Mudhead
Guest
Posts: n/a
 
      11th Dec 2006
Try this

Dim mo As New ManagementObjectSearcher( _
"root\CIMV2", _
"SELECT * FROM Win32_NetworkAdapterConfiguration")

For Each mac As ManagementObject In mo.Get()

Debug.WriteLine("MACAddress: " & CType(mac("MACAddress"), String))

Next






"The Frog" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Have you considered using a cryptographic type approach? It may be
> possible, for example, to generate a unique identification key for the
> machine, say based on a few different factors like the MAC address, the
> machine name, and the capacity of the C: hard drive, then use some
> simple obfuscation method to hide how you did it, store the key in the
> registry if needed, and send a copy to yourself so you have it on
> record.
>
> That may prove to be a relatively cheap, effective way to "lock down"
> licensing issues.
>
> For the "authorisation" component you could have the software require a
> counter-key that comes from you. Use something like public / private
> key pairs, or Diffie Hellman, and then let the client install validate
> itself based on the response. With Diffie Hellman, the agreed key could
> be sent back with the "public" part of your half of the authorisation,
> which also serves to make the authorisation key nice and long.
>
> This should be able to be coded quite easily with a little time. There
> are plenty of maths libraries available to do the number crunching for
> you.
>
> I hope that this helps
>
> Cheers
>
> The Frog
>



 
Reply With Quote
 
cnhingman@gmail.com
Guest
Posts: n/a
 
      20th Dec 2006
Download GetDiskSerial.DLL at http://www.devlib.net to help you!

The GetDiskSerial.DLL is a standard 32-bit DLL file.You can use it to
read the serial number of hard disk easily. As we all know, this serial
number is unique in the world. So this DLL is of great use, for
example, you can use this serial number to creat an encrypt number.

Key Features
*Easy to obtain the serial number of hard disk.
*Support reading several physics hard disks.
*Many development languages are supported, such as the Delphi,
C++Builder, VC, C#, VB, VB.NET, PowerBuilder, Visual Foxpro, Clarion
etc is available.
*Read more parameters, such as Model Number, Revision Number, Buffer
Size, Cylinders, Heads, Sectors per track, etc.
*Not require administrator rights in Win NT/2000/XP.


Product Sheet:
http://www.devlib.net/getdiskserial.htm

Trials are available at
http://www.devlib.net/download/getdiskserial.zip

For more information, please visit
http://www.devlib.net


"Paul Bromley дµÀ£º
"
> Ok - I have given up on trying to find the active IP address for a given PC.
> For licensing purposes I need to retrive a unique identifier from the PC
> that the program is installed on. The Hard disk serial number would do fine,
> but on Googling it seems that some of the sample code will now laways work
> on W2K, and not without administrator rights.
>
> Hence my question - how can I consistently get a UNIQUE PC identifier using
> vb.net 2003 - not bothered what the idnetifier is providing that it works
> 100% of the time on XP and W2K.
>
> Best wishes
>
>
> Paul


 
Reply With Quote
 
New Member
Join Date: Apr 2012
Posts: 1
 
      27th Apr 2012
The GetSystemInfo ActiveX is a eay tool to get hard disk serial number. You can get it from
http://www.file-expert.com/Get-System-Info-ActiveX.htm
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSD Error: "Expecting '.', identifier or quoted identifier withmultiple tables. S_K Microsoft ASP .NET 0 6th Aug 2008 10:22 PM
Assigning unique identifier to unique authors =?Utf-8?B?Ymx1ZXNreQ==?= Microsoft Access Queries 5 3rd Aug 2007 09:12 PM
identifier not found error, undeclared identifier aarthi28@gmail.com Windows XP WMI 3 26th Feb 2007 03:11 AM
identifier not found error, undeclared identifier aarthi28@gmail.com Microsoft VC .NET 3 26th Feb 2007 03:11 AM
validation rule for a unique identifier number? =?Utf-8?B?SGFucyBIaWxiZXJ0?= Microsoft Access 2 12th Oct 2004 10:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:27 AM.