Jump to content

Pulling BIOS info in WinPE 2.0?


Recommended Posts

Posted

SMBiosD and W don't work for me in 2.0? HTA and WMI packages are installed and I can't figure out why neither will run. They both say that the .exe cannot be found. Does anyone have a freeware utility that will read the bios in PE 2.0? I need to extract Model and Manufacturer.


Posted (edited)

Here is what I use: (VBS script)

Dim objFileSystem, objOutputFile

Dim strOutputFile

strComputer = "."

strOutputFile = "X:\hardtest.ini"

Set objFileSystem = CreateObject("Scripting.fileSystemObject")

Set objOutputFile = objFileSystem.CreateTextFile(strOutputFile, TRUE)

Set objWMIService = GetObject("winmgmts:" _

& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colSettings = objWMIService.ExecQuery _

("SELECT * FROM Win32_ComputerSystem")

For Each objComputer in colSettings

'Wscript.Echo "System Manufacturer: " & objComputer.Manufacturer

objOutputFile.WriteLine("Type: " & objComputer.Manufacturer & "")

objOutputFile.WriteLine("Model: " & objComputer.Model & "")

Next

objOutputFile.Close

Set objFileSystem = Nothing

WScript.Quit(0)

Here is the output: "X:\hardtest.ini"

Type: Supermicro

Model: H8SMI

Edited by Jazkal
Posted
Here is what I use: (VBS script)
Dim objFileSystem, objOutputFile

Dim strOutputFile

strComputer = "."

strOutputFile = "X:\hardtest.ini"

Set objFileSystem = CreateObject("Scripting.fileSystemObject")

Set objOutputFile = objFileSystem.CreateTextFile(strOutputFile, TRUE)

Set objWMIService = GetObject("winmgmts:" _

& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colSettings = objWMIService.ExecQuery _

("SELECT * FROM Win32_ComputerSystem")

For Each objComputer in colSettings

'Wscript.Echo "System Manufacturer: " & objComputer.Manufacturer

objOutputFile.WriteLine("Type: " & objComputer.Manufacturer & "")

objOutputFile.WriteLine("Model: " & objComputer.Model & "")

Next

objOutputFile.Close

Set objFileSystem = Nothing

WScript.Quit(0)

Here is the output: "X:\hardtest.ini"

Type: Supermicro

Model: H8SMI

Thanks Jaz, I ended up writing a very simple AutoIT script for it, working great now.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...