detecting hardware type from 32-bit WinPE?
#1
Posted 08 January 2007 - 11:25 PM
I tried GetSystemInfo, but it returns me INTEL_PENTIUM_PROCESSOR for both cases (32/64 bit h/w)
#3
Posted 09 January 2007 - 10:27 PM
#4
Posted 10 January 2007 - 07:54 AM
devcon find *
#5
Posted 11 January 2007 - 02:00 AM
Jazkal, on Jan 10 2007, 07:54 PM, said:
devcon find *
On my 32 bit machine - devcon reports
ACPI\GENUINEINTEL_-_X86_FAMILY_15_MODEL_4
& On 64 bit, it reports -
ACPI\GENUINEINTEL_-_X86_FAMILY_15_MODEL_6
I dont think model number can be used to differentiate between 32 & 64 bit arch.
#6
Posted 11 January 2007 - 07:01 AM
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
#7
Posted 12 January 2007 - 03:22 AM
I tried browsing Win32_Processor:AddressWidth on:
32 bit Win2k3 OS installed on 64-bit hardware. (AddressWidth is 32 here)
64-bit Win2K3 OS installed on 64-bit hardware. (AddressWidth is 64 here)
So I dont think I can retrieve actual arch of processor if 32bit WinPE is running on 64bit processor using WMI technique.
#8
Posted 12 January 2007 - 08:12 AM
pankajtakawale, on Jan 12 2007, 03:22 AM, said:
I tried browsing Win32_Processor:AddressWidth on:
32 bit Win2k3 OS installed on 64-bit hardware. (AddressWidth is 32 here)
64-bit Win2K3 OS installed on 64-bit hardware. (AddressWidth is 64 here)
So I dont think I can retrieve actual arch of processor if 32bit WinPE is running on 64bit processor using WMI technique.
I dont really get that.... unless you are running on ia64 (itanium = pure 64) which is not very common, the x86/x64 compatible processors are determined by the actual operating system runnin ontop of it, it is the same processor, just depending on the OS, then bit width will be either 32 or 64.... then should not WMI work? It seems to do the trick for me. I also read the Win32_Processor AddressWidth property to resolve WMI filters and stuff...
This post has been edited by Br4tt3: 12 January 2007 - 08:15 AM
#9
Posted 14 January 2007 - 01:39 AM
Br4tt3, on Jan 12 2007, 08:12 PM, said:
pankajtakawale, on Jan 12 2007, 03:22 AM, said:
I tried browsing Win32_Processor:AddressWidth on:
32 bit Win2k3 OS installed on 64-bit hardware. (AddressWidth is 32 here)
64-bit Win2K3 OS installed on 64-bit hardware. (AddressWidth is 64 here)
So I dont think I can retrieve actual arch of processor if 32bit WinPE is running on 64bit processor using WMI technique.
I dont really get that.... unless you are running on ia64 (itanium = pure 64) which is not very common, the x86/x64 compatible processors are determined by the actual operating system runnin ontop of it, it is the same processor, just depending on the OS, then bit width will be either 32 or 64.... then should not WMI work? It seems to do the trick for me. I also read the Win32_Processor AddressWidth property to resolve WMI filters and stuff...
I've installed 32 bit windows OS (w2k3) on 64 bit processor.
WMI browser shows me 32 bit address width for processor. (WMI browser is a WMI Server Repository tool)
I could not find a single technique to know actual processor type (32/64) when running 32 bit OS on 64 bit processor.
#10
Posted 15 January 2007 - 05:24 AM



Help
Back to top








