pringtef
Content Type
Profiles
Forums
Events
Posts posted by pringtef
-
-
Make sure you've the WMI and scripting packages installed, and then you can use a variation on this script to identify if it is 32 or 64 bit.
On Error Resume Next
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
Set objWMIService = GetObject("winmgmts:\\" & "." & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT AddressWidth FROM Win32_Processor", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each objItem In colItems
wScript.Echo "AddressWidth: " & objItem.AddressWidth
Next
0 -
I had similar problems despite injecting the vmware drivers offline and then recompiling.
It appears that the default WinPE image does not enable the protocols and so on, and this needs to be either added to a batch file, such as StartNet.cmd, or manually invoked from a command line.
I ammended StartNet.cmd so that it has the following at the start
wpeinit ; should be in there by default
netcfg -v -winpe ; added this manually
After doing that, things worked fine, and picked up an IP from my DHCP server immediately.
0
detecting hardware type from 32-bit WinPE?
in Windows PE
Posted
One other option you could try would be to extract the Caption value from Win32_Processor, and compare Family, Model, and Stepping values against a table of processors to identify this?