G
Guest
I am in the process of creating a hta page which includes a WMI script. It
looks at the machines BIOS to get the correct information of the machine to
assist in the installation.
The WMI scripts being used are basic ones, they are giving error messages
when used in the winpe 2.0 environment. I have tried them in Vista (build
5744) and they work ok, giving back the information I am expecting with no
error messages.
Any ideas why?
Below is the script I am using:
=============================
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_ComputerSystemProduct",,48)
For Each objItem in colItems
Wscript.Echo "-----------------------------------"
Wscript.Echo "Win32_ComputerSystemProduct instance"
Wscript.Echo "-----------------------------------"
Wscript.Echo "Name: " & objItem.Name
Next
looks at the machines BIOS to get the correct information of the machine to
assist in the installation.
The WMI scripts being used are basic ones, they are giving error messages
when used in the winpe 2.0 environment. I have tried them in Vista (build
5744) and they work ok, giving back the information I am expecting with no
error messages.
Any ideas why?
Below is the script I am using:
=============================
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_ComputerSystemProduct",,48)
For Each objItem in colItems
Wscript.Echo "-----------------------------------"
Wscript.Echo "Win32_ComputerSystemProduct instance"
Wscript.Echo "-----------------------------------"
Wscript.Echo "Name: " & objItem.Name
Next