How to read Bios serial ??
Thanks in advances.
Printable View
How to read Bios serial ??
Thanks in advances.
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
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?
you can gather some information about the bios via WMI (Win32_Bios and Win32_ComputerSystemProduct).
f.e. Win32_Bios.SerialNumber works for me.
attached is a script (rename to vbs or simply via via notepad) which tries to read all possible bios-information via WMI.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
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.