CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2001
    Posts
    60

    How to read Bios serial ??

    How to read Bios serial ??
    Thanks in advances.


  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: How to read Bios serial ??

    You can't. Bill Gates' people would love to do just that. Currently their registration scheme uses the C: drive serial number to tie a product to a registration number of a installed product. Thats the best Microsoft can come up. So when you install a current MS product, Its registration ties that physical CDROM to the C: drive. If you ever replace your C: drive, you get to but a new copy of the software product.

    John G

  3. #3
    Join Date
    Oct 2002
    Location
    Nigeria
    Posts
    2

    Bios number

    How do you think the Piracy stuff can be handled?
    Can you also give details on how what you (Jonh G) explained on what the Bill Gates people do?

  4. #4
    Join Date
    Oct 2002
    Location
    hannover, germany
    Posts
    14
    you can gather some information about the bios via WMI (Win32_Bios and Win32_ComputerSystemProduct).

    f.e. Win32_Bios.SerialNumber works for me.

    Code:
    set compsyswmi = getobject("winmgmts:root/cimv2")
    compsyswql = "select * from win32_bios"
    set instances = compsyswmi.execquery(compsyswql)
    for each instance in instances
    	biosserial = instance.serialnumber
    	'...add any instance you want here
    next
    msgbox biosserial
    attached is a script (rename to vbs or simply via via notepad) which tries to read all possible bios-information via WMI.

    output to string not possible for all - therefor the "on error resume next"-line. lame, but it should work for a simple overview.

    btw: ALWAYS take a look at WMI-components if you have to gather information about the target-system. its a mighty base.
    Attached Files Attached Files
    Last edited by CaseSwitch; October 29th, 2002 at 05:14 PM.
    cu,
    Case

    >> 'does that constant vary or is it always the same?' <<

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured