by Karthikeyan (187 Submissions)
Category: Miscellaneous
Compatability: VB Script
Difficulty: Unknown Difficulty
Originally Published: Thu 29th July 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Get the information of System BIOS using Win32_BIOS WMI Class
'Generated using 'WMI Win32 Class Autoscript Generator' - Developed by Karthikeyan
'Homepage: http://www.geocities.com/marskarthik
On Error Resume Next
Computer = "."
Set OutFile = CreateObject("WScript.Shell")
Const ForAppending = 2
Set FileSystem = CreateObject("Scripting.FileSystemObject")
Set TextFile = FileSystem.OpenTextFile ("c:\Win32_BIOS.txt", ForAppending, True)
TextFile.WriteLine "Script for Win32_BIOS Class by Karthikeyan"
TextFile.WriteLine
Set WMIService = GetObject("winmgmts:\\" & Computer & "\root\cimv2")
Set Items = WMIService.ExecQuery("Select * from Win32_BIOS",,48)
For Each SubItems in Items
TextFile.WriteLine "********************************************************************"
TextFile.WriteLine "BiosCharacteristics: " & SubItems.BiosCharacteristics
TextFile.WriteLine "BIOSVersion: " & SubItems.BIOSVersion
TextFile.WriteLine "BuildNumber: " & SubItems.BuildNumber
TextFile.WriteLine "Caption: " & SubItems.Caption
TextFile.WriteLine "CodeSet: " & SubItems.CodeSet
TextFile.WriteLine "CurrentLanguage: " & SubItems.CurrentLanguage
TextFile.WriteLine "Description: " & SubItems.Description
TextFile.WriteLine "IdentificationCode: " & SubItems.IdentificationCode
TextFile.WriteLine "InstallableLanguages: " & SubItems.InstallableLanguages
TextFile.WriteLine "InstallDate: " & SubItems.InstallDate
TextFile.WriteLine "LanguageEdition: " & SubItems.LanguageEdition
TextFile.WriteLine "ListOfLanguages: " & SubItems.ListOfLanguages
TextFile.WriteLine "Manufacturer: " & SubItems.Manufacturer
TextFile.WriteLine "Name: " & SubItems.Name
TextFile.WriteLine "OtherTargetOS: " & SubItems.OtherTargetOS
TextFile.WriteLine "PrimaryBIOS: " & SubItems.PrimaryBIOS
TextFile.WriteLine "ReleaseDate: " & SubItems.ReleaseDate
TextFile.WriteLine "SerialNumber: " & SubItems.SerialNumber
TextFile.WriteLine "SMBIOSBIOSVersion: " & SubItems.SMBIOSBIOSVersion
TextFile.WriteLine "SMBIOSMajorVersion: " & SubItems.SMBIOSMajorVersion
TextFile.WriteLine "SMBIOSMinorVersion: " & SubItems.SMBIOSMinorVersion
TextFile.WriteLine "SMBIOSPresent: " & SubItems.SMBIOSPresent
TextFile.WriteLine "SoftwareElementID: " & SubItems.SoftwareElementID
TextFile.WriteLine "SoftwareElementState: " & SubItems.SoftwareElementState
TextFile.WriteLine "Status: " & SubItems.Status
TextFile.WriteLine "TargetOperatingSystem: " & SubItems.TargetOperatingSystem
TextFile.WriteLine "Version: " & SubItems.Version
TextFile.WriteLine "********************************************************************"
Next
TextFile.Close
OutFile.Run "notepad.exe c:\Win32_BIOS.txt",1,True