Welcome to Vista Banter. You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact support. |
|
Hardware and Windows Vista Hardware issues in relation to Windows Vista. (microsoft.public.windows.vista.hardware_devices) |
|
LinkBack | Thread Tools | Display Modes |
|
|||
Vista Architecture
Hi all,
I'm running a vbs script to find out my architecture. I use the followong code for this: strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Processor") For Each objItem in colItems Wscript.Echo "Architectu " & objItem.Architecture Select Case objItem.Architecture Case 0 Wscript.Echo "x86" Case 1 Wscript.Echo "MIPS" Case 2 Wscript.Echo "Alpha" Case 3 Wscript.Echo "PowerPC" Case 6 Wscript.Echo "Intel Itanium Processor Family (IPF)" Case 9 Wscript.Echo "x64" End Select Next The script works, or although it does run, but seems to give me the wrong result back. I saw if the architecture returns value 9 that its a x6-bit version. Although when checking in regedit i only see x86bit, and my operating system just says 32bit in Vista. So I don't know where the scripts gets the value that my machine is a 64bit architecture. I need this value for sccm for my deployment of drivers i'm testing now. So I need to know what my architecture is cause we have multiple pc's with a few that have 64bit OSs. If anyone can tell me why this script isn't returning the right value i would be happy to receive any kind of help. Maybe its just because the number 9 maybe wants to say its a 86bit, but i'll be waiting for any results you can give me uys and girls. Thx a lot already for the help. |