或试试这个:
原文链接:https://www.f2er.com/windows/370526.htmlPS 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