如何使用 Powershell 确定 32 位或 64 位版本的 Windows Server 2008?

Mat*_*ley 13 powershell windows-server-2008

使用 Powershell 控制台,可以执行哪些命令/命令来确定是否安装了 Windows Server 2008 的 32 位或 64 位 bersion?

小智 17

或者试试这个:

PS C:\Users\jeffh> $os=Get-WMIObject win32_operatingsystem
PS C:\Users\jeffh> $os.OSArchitecture
64-bit
Run Code Online (Sandbox Code Playgroud)

位于:http : //msgoodies.blogspot.com/2008/05/is-this-powershell-session-32-bit-or-64.html


chu*_*rnd 6

回声%PROCESSOR_ARCHITECTURE%


rom*_*omu 6

就这样吧:

[System.Environment]::Is64BitOperatingSystem
Run Code Online (Sandbox Code Playgroud)