November 30th, 2015

PowerTip: Determine Windows Architecture with PowerShell

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to identify whether you are running a 32-bit or 64-bit version of Windows.

Hey, Scripting Guy! Question How can I use Window PowerShell to see if my version of Windows is 32-bit or 64-bit?

Hey, Scripting Guy! Answer Use Get-CimInstance and query the OSArchitecture property:

(Get-CimInstance Win32_operatingsystem).OSArchitecture

 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.