How to determine 32 or 64 bit version of Windows Server 2008 using Powershell?
Solution 1:
Or try this:
PS C:\Users\jeffh> $os=Get-WMIObject win32_operatingsystem
PS C:\Users\jeffh> $os.OSArchitecture
64-bit
Found at: http://msgoodies.blogspot.com/2008/05/is-this-powershell-session-32-bit-or-64.html
Solution 2:
echo %PROCESSOR_ARCHITECTURE%