mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
Update powershell.md
This commit is contained in:
parent
5ed00bc281
commit
4e1656a331
@ -123,22 +123,22 @@ Get-WmiObject -Class Win32_OperatingSystem
|
||||
## 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
|
||||
```
|
||||
Get-CimInstance -ClassName CIM_Processor | Select Caption | ft -hide
|
||||
Get-CimInstance -ClassName CIM_Processor | Select Caption | ft -HideTableHeaders
|
||||
```
|
||||
|
||||
### 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
|
||||
```
|
||||
Get-CimInstance -ClassName CIM_Processor | Select Manufacturer | ft -hide
|
||||
Get-CimInstance -ClassName CIM_Processor | Select Manufacturer | ft -HideTableHeaders
|
||||
```
|
||||
|
||||
### Cim-Class List
|
||||
|
Loading…
Reference in New Issue
Block a user