Get-WmiObject를 이용한 NIC 규격 구하기
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 값
참조
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
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