64 bit or 32 bit OS using WMI?

How do I determine if the currently running Operating System is 32 bit or 64 bit?
I thought I could use the OSArchitecture member of the Win32_OperatingSystem Class, but this member isn't available on Windows 2003 - my code will run on XP and above (Primarily Server 2003).
LVL 2
FLPeopleAsked:
Who is Participating?
 
HeiniHogCommented:
0
 
FLPeopleAuthor Commented:
What namespace is that class in?
0
 
ry_berkCommented:
This article also helps:

http://support.microsoft.com/kb/827218
0
 
HeiniHogCommented:
I believe it is in the root WMI namespace.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.