View Full Version : Read from BIOS
abnrange
08-21-2008, 09:37 AM
Hi All,
Is it possible to read the assest tag from the bios? I would like to get model number or asset tag so, I can automatically detect what system drivers are needed. Could not find anything in the forums.
Thanks
HMMurdock
08-21-2008, 10:07 AM
I don't know of a way to do it entirely within an AMS script, however I once used a .vbs script that would write the info to an INI file that you could read into AMS.
I can post the script if you're interested.
HMMurdock
08-21-2008, 10:25 AM
Here is the .VBS script, and the AMS code that will work with it
tLanInfo = System.GetLANInfo();
File.Run("cscript.exe", _TempFolder.."\\ServiceTag.vbs "..tLanInfo.Host), "", SW_MINIMIZE, true);
Application.Sleep(1000);
sServiceTag = INIFile.GetValue("C:\\Windows\\ServiceTag.ini", "Main", "ServiceTag");
if sServiceTag == "" then
sServiceTag = "UNKNOWN"
end
For the record, this is to get the Dell asset tag, I have no idea if it will work with any other brands, but it was pretty reliable with the Dells that I used.
abnrange
08-21-2008, 12:02 PM
Thanks - That will work!
abnrange
12-29-2008, 09:33 PM
Hello,
Line 2 unexpected symbol. Not sure what symbol is casuing the error. I change the code and get the same results. I mus have missed something!
Can someone identify the symbol? Thanks
S0mbre
12-29-2008, 10:28 PM
It seems, the right bracket in the parameters field (after tLanInfo.Host) is superfluous.
abnrange
12-29-2008, 10:49 PM
I removed the bracket - same error.
Does anyone know hw to the asset tag fom Dell Bios?
I found this on MS site - Not sure how to make it work with AMS.
Start>Run>wmic SystemEnclosure.SMBIOSAssetTag
I would like to read the asset tag and if asset tag =O755 then do this elseif asset tag =O745 then do this etc...
Also, found some info from IBM SMBIOS2.exe but could not find the download.
Thanks
presidente
12-31-2008, 11:28 AM
there is a little tool named BIOS Information Tool 1.3
You can download it at http://software.filestube.com/download,3614acc8.html
it makes a little report with serialetc.
http://sapco.info/software/biosreport.jpg
It works on all computers (not only dell) and here you can extract the values easily, parsing for the different elements.
There is another site with usefull freeware http://www.nirsoft.net/utils/index.html.
Tools around the system and usb.
abnrange
12-31-2008, 12:32 PM
Thanks for the information! I don't understand how to parse a file - I have tried but, fail everytime. All I want is to be able to get the Model or asset tag of a computer then if model= something then do this elseif model=something then do this etc...
Basically I want to detect the system model or asset tag and install the correct system drivers (NIC, video, chipset, etc.)
It seems simple to do - I just don't know how to do it!
Thanks again
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.