Using the Powershell console, what command/commands can be executed to determine if the 32 or 64 bit bersion of Windows Server 2008 is installed?
Using the Powershell console, what command/commands can be executed to determine if the 32 or 64 bit bersion of Windows Server 2008 is installed?
Or try this:
Found at: http://msgoodies.blogspot.com/2008/05/is-this-powershell-session-32-bit-or-64.html
echo %PROCESSOR_ARCHITECTURE%
So be it:
"echo %PROCESSOR_ARCHITECTURE%" down-voted? Must not be powershelly enough, which is funny if you look at the other examples using WMI and other aliases.
oh well, try this:
EDIT - pointed out in the comment that this is not the version of windows, it's the arch. FWIW- It's not the "real" arch, it's what WOW64 is reporting to the app. But you are right... if it's x32 powershell, it'll say x86. Often times this will get you what you want but...
Either way, http://support.microsoft.com/kb/556009 is the registry location to the correct value, and here's a script.
With PowerShell:
Source: http://www.sysadmit.com/2015/10/windows-como-saber-si-es-de-32-o-64-bits.html
you may type in cmd "systeminfo" then easily you can detect about 32bit or 64bit
I would assume you can just open a command prompt and type:
cd "C:\Program Files (x86)"
if you get somewhere, you got 64 bit.