A Windows Vista forum. Vista Banter

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.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Hardware and Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Hardware and Windows Vista Hardware issues in relation to Windows Vista. (microsoft.public.windows.vista.hardware_devices)

Vista Architecture



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old March 27th 09, 02:59 PM posted to microsoft.public.windows.vista.hardware_devices
deconinckg
external usenet poster
 
Posts: 1
Default 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.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:49 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-2024 Vista Banter.
The comments are property of their posters.