Update powershell.md
Some checks failed
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled

This commit is contained in:
Alexander 2024-09-14 17:41:40 -04:00 committed by GitHub
parent 5ed00bc281
commit 4e1656a331
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,22 +123,22 @@ Get-WmiObject -Class Win32_OperatingSystem
## Get-CimInstance ## Get-CimInstance
``` ```
Get-CimInstance -ClassName CIM_Processor | Where-Object {$_.'DeviceID' -eq 'CPU0'} | ft -hide Get-CimInstance -ClassName CIM_Processor | Where-Object {$_.'DeviceID' -eq 'CPU0'} | ft -HideTableHeaders
``` ```
### To extract CPU information only ### To extract CPU information only
``` ```
Get-CimInstance -ClassName CIM_Processor | Select Caption | ft -hide Get-CimInstance -ClassName CIM_Processor | Select Caption | ft -HideTableHeaders
``` ```
### To extract CPU name only ### To extract CPU name only
``` ```
Get-CimInstance -ClassName CIM_Processor | Select Name | ft -hide Get-CimInstance -ClassName CIM_Processor | Select Name | ft -HideTableHeaders
``` ```
### To extract CPU manufacturer only ### To extract CPU manufacturer only
``` ```
Get-CimInstance -ClassName CIM_Processor | Select Manufacturer | ft -hide Get-CimInstance -ClassName CIM_Processor | Select Manufacturer | ft -HideTableHeaders
``` ```
### Cim-Class List ### Cim-Class List