Home > Blockchain >  How can I get the processor "SocketDesignation" with Get-CimInstance?
How can I get the processor "SocketDesignation" with Get-CimInstance?

Time:12-18

Since wmic calls are deprecated by Microsoft, how can I use Get-CimInstance to get the same information as wmic cpu get SocketDesignation?

CodePudding user response:

The Win32_Processor class has a SocketDesignation property. This command produces the same result for me:

(Get-CimInstance -ClassName 'Win32_Processor' -Property 'SocketDesignation').SocketDesignation

Alternatively, you can use the Get-ComputerInfo cmdlet to get instances of the Processor class, which also have a SocketDesignation property:

(Get-ComputerInfo -Property 'CsProcessors').CsProcessors.SocketDesignation

In both commands, the -Property parameter is selecting specific properties, instead of all available, to be present in the result.

  • Related