BIOS informational VB script

Ages ago when I started as technical support, VB script was one of my best friends. Sometimes is much easier to create small script to grab some information.

I remember that I needed some BIOS information`s, it was impractical to start every PC in BIOS and grab information. So I created small VB script, which gave me necessary info. I don`t remember information I needed but i`ll share the script.

First create bios.vbs file or first type script and then save as .vbs file. The type following script:

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

Set Items = objWMIService.ExecQuery(“Select * from Win32_BIOS”)

For Each objItem in Items
MsgBox ” Manufacturer: ” & objItem.Manufacturer & VbCrLf & ” Description:  ” & objItem.Description & VbCrLf & ” Serial: ” & objItem.SerialNumber

As you can see, my script will show object items: manufacturer, BIOS description and serial number.  You can any other attribute contained in Win32_BIOS class.

I hope that this tutorial was informative to you and thank you for visiting this website.

Dejan Dzodan

Dejan Dzodan

IT professional for more then 15 years, mostly in financial institutions but with experience in ISP and retail. Proven in networking and overall infrastructure projects. Cisco instructor.

Leave a Reply

Your email address will not be published. Required fields are marked *

8 + 9 =