Search notes:

Registry: HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\n

This registry key seems to provide some information about the nth CPU.

Determine bitness of CPU

If the value of Identifier contains 64 Family, this seems to be an indication that the System is running a 64 bit CPU.
@echo off

reg query HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0 /v "Identifier" | find "64 Family"

if %errorlevel% == 1 goto x86

   echo 64 bit processor
   exit /b

:x86

   echo 32 bit processor
Github repository about-Windows-Registry, path: /HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/n/determine-cpu-bitness.bat
See also Determine if cmd.exe is running in a 32 or 64 bit environment

Index