[code]
# cpu情報を表示
Get-WmiObject -Class Win32_Processor
# 物理コア数を表示
Get-WmiObject -Class Win32_Processor | Format-List NumberOfCores
# 論理コア数を表示(THH)
Get-WmiObject -Class Win32_Processor | Format-List NumberOfLogicalProcessors
[/code]
と、色々と調べたけど、
[code]
Get-WmiObject -Class Win32_Processor | Format-List NumberOfCores, NumberOfLogicalProcessor
[/code]
が一番すっきりする
Get-WmiObject -Class Win32_Processor | Format-List NumberOfCores,NumberOfLogicalProcessors
最後のsが抜けてます。
#悩んだぁ。w