saint10
asked on
Retrieve machine serial number
I know IBM netfinity can retreive machine serial number with their software. Can i use some tool or can i program something to get serial number?
Konni
Konni
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Not CPU, machine serial.
Saint10,
Sorry pal, but what is a machine serial number? Is this number the one who gives the company that builds computers to each machine? I don't know if that companies put a serial number inside any ROM or chip of the machine.
Best regards,
Manuel López (lopem)
Sorry pal, but what is a machine serial number? Is this number the one who gives the company that builds computers to each machine? I don't know if that companies put a serial number inside any ROM or chip of the machine.
Best regards,
Manuel López (lopem)
ASKER
yes, but i dont know if it is possible to retreive this serial. I know IBM can with IBM Netfinity product
Konni.
Konni.
I dont think most hardware company puts a serial number to each machine... probably IBM does this with their products...
Best regards,
Manuel López (lopem)
Best regards,
Manuel López (lopem)
ASKER
take a look at this .vbs file
ComputerName = InputBox("Enter the name of the computer you wish to query")
winmgmt1 = "winmgmts:{impersonationLe vel=impers onate}!//" & ComputerName &""
'WScript.Echo winmgmt1
Set SNSet = GetObject( winmgmt1 ).InstancesOf ("Win32_BIOS")
for each SN in SNSet
MsgBox "The serial number for the specified computer is: " & SN.SerialNumber
Next
ComputerName = InputBox("Enter the name of the computer you wish to query")
winmgmt1 = "winmgmts:{impersonationLe
'WScript.Echo winmgmt1
Set SNSet = GetObject( winmgmt1 ).InstancesOf ("Win32_BIOS")
for each SN in SNSet
MsgBox "The serial number for the specified computer is: " & SN.SerialNumber
Next
Does this code works for every computer brand or just for IBM computers? I dont know if most companies produce a serial number for each machine and then they put that unique number in some ROM of each machine. I dont think this is the usual practice... I dont have more ideas to share... Sorry ;)
Manuel López (lopem)
Manuel López (lopem)
ASKER
works on any computer
When I try to run the above code, I get a Syntax error on line 7 Char 1..
Set SNSet....
Set SNSet....
ASKER
I know, this would not work on NT4.0 without ActiveX installed, but it works on all w2k machines.
Konni.
Konni.
I have NT4 SP6 with ActiveX installed...
I do not have WMI so I guess I'm outta luck!
ASKER
yes, i think you have to install that,
From the
Set SNSet = GetObject( winmgmt1 ).InstancesOf("Win32_BIOS" )
instruction, it looks to me this is a BIOS serial number, not a machine one.
Set SNSet = GetObject( winmgmt1 ).InstancesOf("Win32_BIOS"
instruction, it looks to me this is a BIOS serial number, not a machine one.
ASKER
I think machine serial is stored in bios rom.
best wishes,
Manuel López (lopem)