可以通过使用 WMI 的 Win32_Processor 类检索常规处理器信息 ,尽管很可能需要筛选信息:

PS C:\Users\maxsu> Get-CimInstance -ClassName Win32_Processor | Select-Object -ExcludeProperty "CIM*"

DeviceID Name                                    Caption                               MaxClockSpeed SocketDesignatio
                                                                                                     n
-------- ----                                    -------                               ------------- ----------------
CPU0     Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz Intel64 Family 6 Model 158 Stepping 9 3000          Socket 0

对于该处理器系列的常规描述字符串,可以仅返回 SystemType 属性:

PS C:\Users\maxsu> Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object -Property SystemType
>>

SystemType
----------
x64-based PC