2

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: http://www.maxi-pedia.com/32+Bit+or+64+Bit+Operating+System

But the suggestions of

HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0

and

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

do not appear to exist in my registry

marked as duplicate by 3498DB, 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
  • 2
    from the linked duplicate - HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion - check for BuildLabEx – Sathyajith Bhat May 31 '11 at 10:22
3

The registry key

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

should give you the required info

  • And what should the value be for 32 bit versus 64 bit ? – StixO Jan 5 at 19:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.