From 4e1656a33176fdec8b058acd4d1343d939fc3807 Mon Sep 17 00:00:00 2001 From: Alexandre B Date: Sat, 14 Sep 2024 17:41:40 -0400 Subject: [PATCH] Update powershell.md --- assets/powershell.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/powershell.md b/assets/powershell.md index 9c30ac90..53347511 100644 --- a/assets/powershell.md +++ b/assets/powershell.md @@ -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