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.
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.
Last edited by CaseSwitch; October 29th, 2002 at 05:14 PM.
cu,
Case
>> 'does that constant vary or is it always the same?' <<
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.