Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

BIOS asset tag can we see it inside the OS?

Hi,

BIOS asset tag can we see it inside the OS?
BIOS has a serial number in the Asset tag
can we see it within the OS

IBM systems
Thanks
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of Bill Prew
Bill Prew

Easy enough to get at a command prompt with this simple command, were you looking for something other than this?

wmic bios get serialnumber

Open in new window

~bp
Avatar of bsharath

ASKER

Serial no is fine
How can i get the asset no
There is a entry as asset no in the bios
Hi Sharath,

I think that this should work:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colSMBIOS = objWMIService.ExecQuery ("Select SMBIOSAssetTag from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
    Wscript.Echo "Asset Tag: " & objSMBIOS.SMBIOSAssetTag
Next

Open in new window


I found it on this web page:
http://forums.lenovo.com/t5/A-and-M-Series-ThinkCentre/M57-BIOS-no-onger-WMI-compatible/td-p/70230


P.S. Here's another link: this is an asset read / write utility for Lenovo.  I just googled and got the link I have no idea if this works.
http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS014154
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

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