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. |
All times are GMT. The time now is 06:35 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2006 VistaBanter.com