Question

Locked

Interrogate BIOS from OS

By dg ·
Hi
Can anyone advise whether it is possible to interrogate the BIOS from within the operating system?
Is there a piece of software that can display in Windows, BIOS settings, such as whether ?Wake-up-on-PCI? is enabled?
Also, does anyone know if it is possible to make such a change from within the OS rather than by entering the BIOS at boot-up?
Thanks

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

You're going to have to get to grips with WMI

by neilb@uk In reply to Interrogate BIOS from OS

It will let you do most things if you can write a script to do it. As WMI is capable of trashing a system if you misuse it, you'll have to find this out for yourself as I've no idea what system you have.

Neil :)

Just so you can see what you can view, download a copy of WMI Object Browser from Microsoft (Google for it).

Collapse -

Thanks

by dg In reply to You're going to have to g ...

Thanks for your help - really apprecaite it

Collapse -

You can do it using VBScript. Download VBSEdit as it has tons of samples

by ManiacMan In reply to Interrogate BIOS from OS

and useful scripts built right into the editor than you can easily use by modifying a few simple parameters. I use it a lot myself and I truly don't know much about VBScript or WMI, but the canned scripts in VBSEdit will take care of that for you. I believe it has a sample script to query BIOS via WMI classes.

http://www.programmersheaven.com/download/46325/download.aspx

Here's the script provided by VBSEdit:

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colBIOS = objWMIService.ExecQuery _
("Select * from Win32_BIOS")

For each objBIOS in colBIOS
Wscript.Echo "Build Number: " & objBIOS.BuildNumber
Wscript.Echo "Current Language: " & objBIOS.CurrentLanguage
Wscript.Echo "Installable Languages: " & objBIOS.InstallableLanguages
Wscript.Echo "Manufacturer: " & objBIOS.Manufacturer
Wscript.Echo "Name: " & objBIOS.Name
Wscript.Echo "Primary BIOS: " & objBIOS.PrimaryBIOS
Wscript.Echo "Release Date: " & objBIOS.ReleaseDate
Wscript.Echo "Serial Number: " & objBIOS.SerialNumber
Wscript.Echo "SMBIOS Version: " & objBIOS.SMBIOSBIOSVersion
Wscript.Echo "SMBIOS Major Version: " & objBIOS.SMBIOSMajorVersion
Wscript.Echo "SMBIOS Minor Version: " & objBIOS.SMBIOSMinorVersion
Wscript.Echo "SMBIOS Present: " & objBIOS.SMBIOSPresent
Wscript.Echo "Status: " & objBIOS.Status
Wscript.Echo "Version: " & objBIOS.Version
For i = 0 to Ubound(objBIOS.BiosCharacteristics)
Wscript.Echo "BIOS Characteristics: " & _
objBIOS.BiosCharacteristics(i)
Next
Next

If you're running this against a computer other than your local machine, replace the dot within the double quotes in strComputer with the Netbios name of the remote machine and run the script.

Collapse -

Thanks

by dg In reply to You can do it using VBScr ...

Appreciate your help. many thanks

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums