Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Detect Windows Server version 32/64-bit in CLI

Is there a way to check whether a user is running a 64-bit or 32-bit operating system by looking in the registry?

The following site makes some suggestions:

But the suggestions of



HKLM\SYSTEM\CurrentCongtrolSet\Control\Session Manager\Envirornment

do not appear to exist in my registry

share|improve this question

marked as duplicate by 8088, Mehper C. Palavuzlar, Nifle, Gilles, alex Jun 1 '11 at 12:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

In what way do they not work? – Tobias Plutat May 31 '11 at 9:46
Sorry. I've clarified that now. – Urbycoz May 31 '11 at 9:50
Which version of Windows are you on? – Tobias Plutat May 31 '11 at 9:56
I'd like it to be generic across all windows versions. – Urbycoz May 31 '11 at 10:03
from the linked duplicate - HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion - check for BuildLabEx – Sathya May 31 '11 at 10:22
up vote 3 down vote accepted

The registry key

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\BuildLabEx

should give you the required info

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .