Check if 32 or 64-bit Windows OS via registry

2

1

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

Urbycoz

Posted 2011-05-31T09:44:53.713

Reputation: 1 055

Question was closed 2011-06-01T12:52:00.997

In what way do they not work? – Tobias Plutat – 2011-05-31T09:46:34.210

Sorry. I've clarified that now. – Urbycoz – 2011-05-31T09:50:55.363

Which version of Windows are you on? – Tobias Plutat – 2011-05-31T09:56:14.887

I'd like it to be generic across all windows versions. – Urbycoz – 2011-05-31T10:03:24.407

@Gareth. This is certainly NOT a duplicate. I need to detect 32/64 bit VIA THE REGISTRY. – Urbycoz – 2011-05-31T10:03:57.277

I just checked it - it's present in both my XP (x32) and 7 (x64) PC's windows registry. Which key in the registry is the first you can't find? – Tobias Plutat – 2011-05-31T10:09:04.203

2from the linked duplicate - HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion - check for BuildLabEx – Sathyajith Bhat – 2011-05-31T10:22:54.427

@Sathya. Cool that's what I was after. – Urbycoz – 2011-05-31T10:25:29.230

@Urbycoz - apols. It might not have been an exact duplicate but at least you got your answer from there anyway. ;) – Gaff – 2011-06-01T02:40:42.980

Answers

4

The registry key

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

should give you the required info

Sathyajith Bhat

Posted 2011-05-31T09:44:53.713

Reputation: 58 436

1And what should the value be for 32 bit versus 64 bit ? – StixO – 2019-01-05T19:06:02.360

this key does not exist on my windows 10 box – kofifus – 2019-08-05T23:24:29.370