$Is64BitOS = [Environment]::Is64BitOperatingSystem If ($Is64BitOS -eq $true) { ; $propath = "C:Program Files (x86)" MsgBox,32 Bit (x86) } else { ; $propath = "C:Program Files" MsgBox,64 Bit (x64) }