Link to home
Start Free TrialLog in
Avatar of saint10
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
ASKER CERTIFIED SOLUTION
Avatar of Manuel Lopez-Michelone
Manuel Lopez-Michelone
Flag of Mexico image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
by the way, Simonet should have your points...

best wishes,
Manuel López (lopem)
Avatar of saint10
saint10

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)
Avatar of saint10

ASKER

yes, but i dont know if it is possible to retreive this serial. I know IBM can with IBM Netfinity product

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)
Avatar of saint10

ASKER

take a look at this .vbs file

ComputerName = InputBox("Enter the name of the computer you wish to query")

winmgmt1 = "winmgmts:{impersonationLevel=impersonate}!//"& 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
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)
Avatar of saint10

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....
Avatar of saint10

ASKER

I know, this would not work on NT4.0 without ActiveX installed, but it works on all w2k machines.

Konni.
I have NT4 SP6 with ActiveX installed...
I do not have WMI so I guess I'm outta luck!
Avatar of saint10

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.
Avatar of saint10

ASKER

I think machine serial is stored in bios rom.