Powershell

Get-WmiObject를 이용한 NIC 규격 구하기

김모우 2020. 11. 20. 22:24
728x90
반응형

1. Get-WmiObject

: 사용 가능한 옵션은 아래와 같습니다.

2. Get-WmiObject -List |more or Get-WmiObject -List |findstr ["검색하고자하는 Class"]

3. Get-WmiObject -Class Win32_NetworkAdapter

: Class 할당

: Filter 설정

 

4. 출력 값 Gb 형태로 변경

: speed 라벨 재 설정 및 출력 형태 변경

: @{label="speed";expression={"${$_.speed/1000000000) Gb/s"}}

: $_.speed - speed 값 

 

참조

community.spiceworks.com/topic/2187738-how-do-i-get-win32_networkadapter-to-report-nic-speed-as-1gb-or-100mb

 

How do I get win32_NetworkAdapter to report NIC speed as 1Gb or 100mb

Hi, I have a fairly simple script that connects to computers in a txt file, and then reports the System, Name, NetConnectionID and Speed, however the speed is reported as 100000000 or 10000000, I would like the display to show in GB or MB for the connectio

community.spiceworks.com

docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-wmiobject?view=powershell-5.1

 

Get-WmiObject (Microsoft.PowerShell.Management) - PowerShell

Starting in PowerShell 3.0, this cmdlet has been superseded by Get-CimInstance. The Get-WmiObject cmdlet gets instances of WMI classes or information about the available WMI classes. To specify a remote computer, use the ComputerName parameter. If the List

docs.microsoft.com

 

728x90
반응형

'Powershell' 카테고리의 다른 글

Send-MailMessage (구글 SMTP 서버를 이용한 메일 전송)  (0) 2020.12.22
Powershell 출력 유형  (0) 2020.11.20
Findstr 사용법  (0) 2020.10.25
Powershell 개체  (0) 2020.10.15
자주 쓰는 성능 카운터 정리  (0) 2020.10.15