Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How To Check If Computer Is Running A 32 Bit or 64 Bit Operating System.


View products that this article applies to.

Author:

Nirmal Sharma MVP

↑ Back to the top


COMMUNITY SOLUTIONS CONTENT DISCLAIMER

MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

↑ Back to the top


SUMMARY

The following knowledgebase explains the methods you can use to check if Operating System is running 32 bit or 64 Bit Version.

↑ Back to the top


MORE INFORMATION

You can use the following registry location to check if computer is running 32 or 64 bit of Windows Operating System:
 
HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0
 
You will see the following registry entries in the right pane:
 
Identifier         REG_SZ                     x86 Family 6 Model 14 Stepping 12
Platform ID    REG_DWORD          0x00000020(32)
 
The above “x86” and “0x00000020(32)” indicate that the Operating System version is 32 bit.
 
You can also a simple batch file to check the setting on remote computer:
 
*** Start ***
 
@echo off
 
Set RegQry=HKLM\Hardware\Description\System\CentralProcessor\0
 
REG.exe Query %RegQry% > checkOS.txt
 
Find /i "x86" < CheckOS.txt > StringCheck.txt
 
If %ERRORLEVEL% == 0 (
    Echo "This is 32 Bit Operating system"
) ELSE (
    Echo "This is 64 Bit Operating System"
)
 
*** End ***
 
You can use PSEXEC (a tool from Sysinternals) to run this script remotely redirect the output in a Text file.
 
To query registry entry on a remote computer you can use the following statement with Reg.exe:
 
Reg.exe Query > checkOS.txt
 
Please note that you can use the below registry entry to identify the processor architecture:
 
HKLM\SYSTEM\CurrentCongtrolSet\Control\Session Manager\Envirornment.
 
You can see the below registry entry in the right pane of the registry editor:
 
PROCESSOR_ARCHITECTURE   REG_SZ         x86
 

↑ Back to the top


Keywords: KB556009, kbhowto, kbpubtypecca, kbpubmvp

↑ Back to the top

Article Info
Article ID : 556009
Revision : 6
Created on : 8/20/2020
Published on : 8/20/2020
Exists online : False
Views : 445