Get Motherboard Serial Number In Vb6

  

Dear All, How can I retrieve Motherboard's Serial number using VB 6 under Win98 Platform. I have the following code, but the problem is that this code is for win2000/XP Platform. Public Function MBSerialNumber() As String 'RETRIEVES SERIAL NUMBER OF MOTHERBOARD 'IF THERE IS MORE THAN ONE MOTHERBOARD, THE SERIAL 'NUMBERS WILL BE DELIMITED BY COMMAS 'YOU MUST HAVE WMI INSTALLED AND A REFERENCE TO 'Microsoft WMI Scripting Library IS REQUIRED Dim objs As Object Dim obj As Object Dim WMI As Object Dim sAns As String Set WMI = GetObject('WinMgmts:') Set objs = WMI.InstancesOf('Win32_BaseBoard') For Each obj In objs sAns = sAns & obj.SerialNumber If sAns.

Get Motherboard Serial Number Vb6

Hi All I URGENTLY NEED HELP PLEASE In a VB6 App: I need a way to get the CPU and or Harddrive unique serial number. But a number that WONT CHANGE if you format the harddrive. Yes, this is for trying to prevent software piracy - only found out that the number changes when you format it just before the BETA1 went out:( A CPU number would be ideal and the app will only work on standalone PC's. Any help would be MUCH appreciated! RE: CPU or Harddrive Unique Serial/Hardware Number (Instructor) 3 Jun 03 01:07. Hmmm gets you the serial number but as you said this will change.

Feb 12, 2002. Dear All, How can I retrieve Motherboard's Serial number using VB 6 under Win98 Platform. I have the following code. Win2000/XP Platform. Public Function MBSerialNumber() As String 'RETRIEVES SERIAL NUMBER OF MOTHERBOARD. Thank you to provide me visual basic codes it is good for us to.

Dim fso As Scripting.FileSystemObject Set fso = New Scripting.FileSystemObject Dim drv As Scripting.Drive Set drv = fso.GetDrive('C: ') MsgBox drv.SerialNumber Getting the CPU serial number was a privacy issues that was covered with contrivercy. I'd say use the MAC address if the machine wasn't stand alone. You could use a profile. Grab a bunch of information about the machine and generate your serial key based on that.

You just have to tell them if they reconfigure the machine that they'll have to request a new key. What happens if they have a computer go bad?

You going to force them to buy a new copy or show proof that the machine went bad? How do you provide proof that a particular CPU has gone bad. Normal programs that need this type of security use hardware dongles. Then the you fix all the problems above.

RE: CPU or Harddrive Unique Serial/Hardware Number (Programmer) 3 Jun 03 05:46. I agree with SemperFiDownUnda. But many apps don't fall in a price range that requires the use of a dongle. I like his idea of generating a serial key based on a range of machine information. Solfeos Hablados Y Cantados Pozzoli Pdf Download.

Make a key based on, let's say, the HD serial and the MAC address and the Windows product key and the motherboard serial (if available). That way, if the HD is upgraded or the NIC is replaced or Windows is upgraded or the motherboard is changed, the program can alter its own key to reflect the new information and continue. Hmmm good idea I found this code, but has no idea if it will work on a normal Windows 95 system aswell. Anyone wanna test this for me??:)) Private Sub Command1_Click() '======================== Dim WMI Dim wmiWin32Objects Dim wmiWin32Object Dim ComputerName As String ComputerName = '.' Zestman>I'm also trying to include the hardware information into my app. The solution that I found is getting the HDD serial number which can be change everytime the user format his/her computer.

So, I'm trying to find out other hardware information. Is the code reading the CPU ID directly from the hardware or from the OS? Will the value of the listed field above will be vary everytime the user format his/her computer? Is the code workable in Window 95? Helps would be appreciate.

From lykeat RE: CPU or Harddrive Unique Serial/Hardware Number. Johnwm>Just for your notice, I did read the faq u listed above for many many times, and I also did some keyword search before posting any messages. By the way, the thread you mentioned is created by me. I really appreciate advice from you.:) I do have a suggestion for your consideration too. Everyone in this site is asking for helps or providing helps to the others. It would be annoying if the same question was repeated for many times.

If you noticed this bad phenomena, you may advice them to read the (That's what you always practice) and provide them some solution. I also did tried on some of the code and first thing that I discovered is HDD serial number which is vary everytime the user format the pc or will be the same if the user duplicate/clone/ghost the entire harddisk.

I also know that there is no unique computer id, I understand that very clear. What I am trying to find out is, 1.

The cpu id captured by using this code is varying everytime the user format his/her computer? RE: CPU or Harddrive Unique Serial/Hardware Number (Programmer) 16 Jun 04 02:59.