或试试这个:
PS C:\Users\jeffh> $os=Get-WMIObject win32_operatingsystem PS C:\Users\jeffh> $os.OSArchitecture 64-bit
发现于:http://msgoodies.blogspot.com/2008/05/is-this-powershell-session-32-bit-or-64.html