Will machine be able to run x64? How to programtically determine....
#1
Posted 23 February 2007 - 09:23 AM
Thanks....
#2
Posted 23 February 2007 - 09:30 AM
#3
Posted 23 February 2007 - 10:36 AM
This software tells you what instruction sets a CPU knows.
#4
Posted 23 February 2007 - 10:42 PM
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_Processor",,48)
For Each objItem in colItems
Wscript.Echo " ---------"
Wscript.Echo " CPU Check"
Wscript.Echo " ---------"
Wscript.Echo
Wscript.Echo "SystemName: " & objItem.SystemName
Wscript.Echo
Wscript.Echo "DeviceID: " & objItem.DeviceID
Wscript.Echo "SocketDesignation: " & objItem.SocketDesignation
Wscript.Echo
Wscript.Echo "NumberOfCores: " & objItem.NumberOfCores
Wscript.Echo "NumberOfLogicalProcessors: " & objItem.NumberOfLogicalProcessors
Wscript.Echo
Wscript.Echo "Manufacturer: " & objItem.Manufacturer
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo
Wscript.Echo "ProcessorId: " & objItem.ProcessorId
Wscript.Echo "ProcessorType: " & objItem.ProcessorType
Wscript.Echo
Wscript.Echo "CurrentClockSpeed: " & objItem.CurrentClockSpeed
Wscript.Echo "MaxClockSpeed: " & objItem.MaxClockSpeed
Wscript.Echo "ExtClock: " & objItem.ExtClock
Wscript.Echo "DataWidth: " & objItem.DataWidth
Wscript.Echo "L2CacheSize: " & objItem.L2CacheSize
Wscript.Echo "L3CacheSize: " & objItem.L3CacheSize
Wscript.Echo
Wscript.Echo "PowerManagementSupported: " & objItem.PowerManagementSupported
Wscript.Echo
Wscript.Echo "Status: " & objItem.Status
Next
Which produces this on my AMD test box:
--------- CPU Check --------- SystemName: VISTA-PC DeviceID: CPU0 SocketDesignation: CPU 1 NumberOfCores: 1 NumberOfLogicalProcessors: 1 Manufacturer: AuthenticAMD Name: AMD Athlon(tm) 64 Processor 3700+ Description: AMD64 Family 15 Model 39 Stepping 1 ProcessorId: 078BFBFF00020F71 ProcessorType: 3 CurrentClockSpeed: 2193 MaxClockSpeed: 2193 ExtClock: 200 DataWidth: 64 L2CacheSize: 1024 L3CacheSize: 0 PowerManagementSupported: False Status: OK
#5
Posted 24 February 2007 - 10:10 AM
Fair enough, but what u guyz are saying is that I will have to create some kind of dictionary that I will base my decision on? Like if, the script returns "Intel Core 2 Duo" then x64 will be fine.... I was more looking for some WMI property or something that would return x64Capable = True/False, 1/0 or something.....
Thanks....
#6
Posted 24 February 2007 - 06:23 PM
Br4tt3, on Feb 24 2007, 11:10 AM, said:
Fair enough, but what u guyz are saying is that I will have to create some kind of dictionary that I will base my decision on? Like if, the script returns "Intel Core 2 Duo" then x64 will be fine.... I was more looking for some WMI property or something that would return x64Capable = True/False, 1/0 or something.....
Thanks....
Pay attention
This WMI call in my script..
Wscript.Echo "DataWidth: " & objItem.DataWidth
...gives you the output...
DataWidth: 64
That would be 32 if a 32bit processor, 64 for a 64bit processor.
#7
Posted 25 February 2007 - 07:27 AM
Thanks man....I will give it a go tomorrow and try it out!
#8
Posted 26 February 2007 - 02:17 AM
#9
Posted 26 February 2007 - 03:15 AM
#10
Posted 26 February 2007 - 11:20 AM
Wscript.Echo "Manufacturer: " & objItem.Manufacturer Wscript.Echo "Name: " & objItem.Name Wscript.Echo "Description: " & objItem.Description Wscript.Echo Wscript.Echo "ProcessorId: " & objItem.ProcessorId Wscript.Echo "ProcessorType: " & objItem.ProcessorType
Manufacturer: AuthenticAMD Name: AMD Athlon(tm) 64 Processor 3700+ Description: AMD64 Family 15 Model 39 Stepping 1 ProcessorId: 078BFBFF00020F71 ProcessorType: 3
You'd have to parse it though, for the name, description, or processorID.
#11
Posted 27 February 2007 - 01:33 AM
I am going for Clubertis suggestion and then parsing the info for "keywords".....
#12
Posted 02 April 2007 - 04:01 PM



Help

Back to top










