Identifying the Windows architecture (32-bit or 64-bit) is crucial during an attack to ensure the correct payloads and exploits are used. The following commands retrieve the operating system architecture using both Command Prompt (WMIC) and PowerShell.
Command:wmic os get OSArchitecture
[System.Environment]::Is64BitOperatingSystem