PC Review


Reply
Thread Tools Rate Thread

How can I get motherboard Serial number?

 
 
cartooncat
Guest
Posts: n/a
 
      9th Aug 2003
I want to get motherboard serial number to protect copyright in my software.
But I don't know how to do.
I got some code from Internet:

Imports System.Management
Dim searcher As New ManagementObjectSearcher("SELECT * FROM
Win32_BaseBoard")
Dim share As ManagementObject

For Each share In searcher.Get()
Debug.WriteLine("manufacturer:" & share("Manufacturer"))
Debug.WriteLine("Product:" & share("Product"))
Debug.WriteLine("SerialNumber:" & share("SerialNumber"))
Next share

but it only return "Product" item, the other two is null.
How can I get unique MotherBoard Serial Number?
Waiting help.....!!!!




 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      9th Aug 2003
"cartooncat" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
....

> How can I get unique MotherBoard Serial Number?


Why do you assume that there is a serial number on every PC? Or if there is
one, why assume it's available to you? Maybe I don't want you to have it?
--
John Saunders
Internet Engineer
(E-Mail Removed)


 
Reply With Quote
 
yoz
Guest
Posts: n/a
 
      9th Aug 2003
Be careful, Intel has tried to make use of processor id for the same purpose
and got their finger burned. Then again, not everything in the computer
(including motherboard and processor) have a serial number and/or a serial
number that is accessible. That is why Global Unique Identifier use the
Network Card.

If you want to lock the software for a single machine, try the registry

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId

that should be unique.

Yoz

"cartooncat" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I want to get motherboard serial number to protect copyright in my

software.
> But I don't know how to do.
> I got some code from Internet:
>
> Imports System.Management
> Dim searcher As New ManagementObjectSearcher("SELECT * FROM
> Win32_BaseBoard")
> Dim share As ManagementObject
>
> For Each share In searcher.Get()
> Debug.WriteLine("manufacturer:" & share("Manufacturer"))
> Debug.WriteLine("Product:" & share("Product"))
> Debug.WriteLine("SerialNumber:" & share("SerialNumber"))
> Next share
>
> but it only return "Product" item, the other two is null.
> How can I get unique MotherBoard Serial Number?
> Waiting help.....!!!!
>
>
>
>



 
Reply With Quote
 
John Saunders
Guest
Posts: n/a
 
      9th Aug 2003
"yoz" <netfever@hot_REMOVE_SPAM_mail.com> wrote in message
news:ln2Za.13478$(E-Mail Removed)...
> If you want to lock the software for a single machine, try the registry
>
> HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId
>
> that should be unique.


Personally, I like to put a GUID somewhere on the customer machine and call
_that_ the serial number. It's meant to be unique, after all.
--
John Saunders
Internet Engineer
(E-Mail Removed)


 
Reply With Quote
 
yoz
Guest
Posts: n/a
 
      9th Aug 2003
Hi John,

I don't have any objection to using GUID, they are unique globally (as long
as you have a network card it seems).

Let's do a scenario here.

1. The software provider generates a key and install it on the client
computer in the registry.
2. A guy comes and want to copy the software. all he need to do is to export
the GUID and import it in his own registry at home

Now with Microsoft Product ID

1. The software provider find the O/S (Windows) ProductID from the registry
and lock his software installation to work only with this Product ID
2. A guy comes and want to copy. He has a choice, mess around with the O/S
Information and risk his system malfunctionning or get a genuine copy (or
one that has been hacked not to do the check at all but that is another
problem).

Yoz

"John Saunders" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> "yoz" <netfever@hot_REMOVE_SPAM_mail.com> wrote in message
> news:lk3Za.14157$(E-Mail Removed)...
> > Sure you acn use a guid but this "ID" can be transported to another O/S
> > easily. I am not sure how far you can change Windows ProductID but I

don't
> > know many people who would try just for a software. On the other hand, I
> > know many people that would insert a new key in the registry (ie: the

> GUID)
>
> I'm not sure I understand your objection to the use of a GUID. GUIDs are

not
> Windows-specific. They go at least as far back as OSF DCE.
> --
> John Saunders
> Internet Engineer
> (E-Mail Removed)
>
>



 
Reply With Quote
 
cartooncat
Guest
Posts: n/a
 
      9th Aug 2003
My purpose is set my software binding to unique PC but not unique OS. If the
user update his OS e.g. from WIN2000 to WinXP , the registry key won't
change. "ProductId" or "GUID" can do this?


"John Saunders" <(E-Mail Removed)> wrote in
message:(E-Mail Removed)...
> "yoz" <netfever@hot_REMOVE_SPAM_mail.com> wrote in message
> news:ln2Za.13478$(E-Mail Removed)...
> > If you want to lock the software for a single machine, try the registry
> >
> > HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId
> >
> > that should be unique.

>
> Personally, I like to put a GUID somewhere on the customer machine and

call
> _that_ the serial number. It's meant to be unique, after all.
> --
> John Saunders
> Internet Engineer
> (E-Mail Removed)
>
>



 
Reply With Quote
 
cartooncat
Guest
Posts: n/a
 
      9th Aug 2003
And how to get GUID?

> Personally, I like to put a GUID somewhere on the customer machine and

call
> _that_ the serial number. It's meant to be unique, after all.
> --
> John Saunders
> Internet Engineer
> (E-Mail Removed)
>
>



 
Reply With Quote
 
Jerry III
Guest
Posts: n/a
 
      9th Aug 2003
Yet if the user replaces his failed motherboard (or simply upgrades) you
won't allow them to use their SW anymore. Doesn't make much sense to me...

Jerry

"cartooncat" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> My purpose is set my software binding to unique PC but not unique OS. If

the
> user update his OS e.g. from WIN2000 to WinXP , the registry key won't
> change. "ProductId" or "GUID" can do this?
>
>
> "John Saunders" <(E-Mail Removed)> wrote in
> message:(E-Mail Removed)...
> > "yoz" <netfever@hot_REMOVE_SPAM_mail.com> wrote in message
> > news:ln2Za.13478$(E-Mail Removed)...
> > > If you want to lock the software for a single machine, try the

registry
> > >
> > > HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId
> > >
> > > that should be unique.

> >
> > Personally, I like to put a GUID somewhere on the customer machine and

> call
> > _that_ the serial number. It's meant to be unique, after all.
> > --
> > John Saunders
> > Internet Engineer
> > (E-Mail Removed)
> >
> >

>
>



 
Reply With Quote
 
John Saunders
Guest
Posts: n/a
 
      9th Aug 2003
"cartooncat" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> My purpose is set my software binding to unique PC but not unique OS. If

the
> user update his OS e.g. from WIN2000 to WinXP , the registry key won't
> change. "ProductId" or "GUID" can do this?


A GUID would do this. Once it's generated, it wouldn't change.

But "yoz" raises some other interesting objections to using one.

I'll admit that I haven't given serious consideration to this issue in a
while, because I gave up the quest for "copy protection" over a decade ago
and got on with my life.
--
John Saunders
Internet Engineer
(E-Mail Removed)


 
Reply With Quote
 
John Saunders
Guest
Posts: n/a
 
      9th Aug 2003
"yoz" <netfever@hot_REMOVE_SPAM_mail.com> wrote in message
news:eQ4Za.15238$(E-Mail Removed)...
....

> Let's do a scenario here.
>
> 1. The software provider generates a key and install it on the client
> computer in the registry.
> 2. A guy comes and want to copy the software. all he need to do is to

export
> the GUID and import it in his own registry at home


Assuming he finds it, assuming you left it there in the clear, assuming you
left it in the registry to begin with...

> Now with Microsoft Product ID
>
> 1. The software provider find the O/S (Windows) ProductID from the

registry
> and lock his software installation to work only with this Product ID
> 2. A guy comes and want to copy. He has a choice, mess around with the O/S
> Information and risk his system malfunctionning or get a genuine copy (or
> one that has been hacked not to do the check at all but that is another
> problem).


Interesting. First, how do you "lock your installation" to the Product ID?
What would prevent the user from taking the original distribution media and
installing on another system?

Second, you should consider that the "Microsoft Product ID" belongs to
Microsoft. They could decide to change it upon the upgrade of the OS, at
which time you'd have a problem. Use something of your own, and you have
only yourself to worry about.

For most software products, one might do better giving up on copy protection
and providing instead:

1) Great support
2) Vicious prosecution of anyone stupid enough to get caught (like the
person who steals a copy but doesn't bother telling his staff its stolen -
so the staff call support)

--
John Saunders
Internet Engineer
(E-Mail Removed)

--
John Saunders
Internet Engineer
(E-Mail Removed)


 
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
Re: Motherboard serial number oldman Computer Hardware 4 11th Mar 2009 08:08 AM
Motherboard, hard drive, NIC Serial Number? =?Utf-8?B?Sm9iIExvdA==?= Microsoft Dot NET 2 2nd Aug 2004 03:19 AM
Motherboard or Haddisk Serial Number Balan V Windows XP Hardware 1 12th Jun 2004 03:42 PM
Getting either harddrive or motherboard serial number Abubakar Microsoft C# .NET 2 20th Jan 2004 10:28 AM
Harddrive or Motherboard Serial number Abubakar Microsoft VB .NET 6 18th Jan 2004 08:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:31 PM.