일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- Automation
- apt
- tcp
- 데이터 분석
- 5.0
- EC2
- kibana
- airflow
- 자동화
- ELK
- sso
- elasticsearch
- Linux
- AWS
- API
- Selenium
- zabbix
- 8.0
- 시스템자동화
- ansible
- GIT
- DB
- powershell
- ubuntu
- EKS
- module
- GCP
- MySQL
- python
- crawling
- Today
- Total
Oops - IT
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
'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 |