Unfortunately, the above answers do not work in most cases.
Dupmchk.exe will say โx86 compatibleโ for x86 and x64 if the target process was built as binary x86. Command! Peb also gives you the useless "PEB NULL ..." for the mini remotes we use most of the time.
It is better to check the full path to "Kernel32.dll", since x64 OS will load "C: \ Windows \ Syswow64 \ Kernel32.dll" , while x86 OS will load a simple "C": \ Windows \ System32 \ Kernel32.dll for executable x86 files. Loaded modules and their paths are restored in minidump and are easily checked with dumpchk.exe, windbg and Visual Studio.
source share