PowerTip: Determine if PowerShell is Running x86 or x64

Doctor Scripto

Dr Scripto

Summary: Boe Prox shows how to determine if Windows PowerShell is running x86 or x64.

Hey, Scripting Guy! Question How can I use Windows PowerShell to determine if I am running x86 or x64?

Hey, Scripting Guy! Answer Use [intptr]::Size as follows:

Switch ([intptr]::Size) {

    4 {"x86"}

    8 {"x64"}      

}

0 comments

Comments are closed. Login to edit/delete your existing comments