Get-NetAdapter
ネットワークアダプターのプロパティを取得する
パラメーター
Parameter | Input | Description |
---|---|---|
-IncludeHidden | すべての可視および非表示のネットワークアダプターを対象 | |
-InterfaceDescription | String[] | ネットワークアダプターの説明を指定 ワイルドカードの使用可 |
-InterfaceIndex | UInt32 | ネットワークアダプターのインデックス番号を指定 |
-Name | String[] | ネットワークアダプターの名前を指定 パラメーター名は省略可能 |
-Physical | すべての物理ネットワークアダプターを取得 |
実行サンプル
PS C:\> Get-NetAdapter Name InterfaceDescription ifIndex Status MacAddress LinkSpeed ---- -------------------- ------- ------ ---------- --------- [アダプター名1] Intel(R) 82574L Gigabit Network Conn... 13 Disconnected xx-xx-99-E3-xx-xx 0 bps [アダプター名2] Intel(R) 82579LM Gigabit Network Con... 12 Up xx-xx-0E-04-xx-xx 1 Gbps PS C:\>
Format-List で整形
PS C:\> Get-NetAdapter | Format-List Name : [アダプター名1] InterfaceDescription : Intel(R) 82574L Gigabit Network Connection InterfaceIndex : 13 MacAddress : xx-xx-99-E3-xx-xx MediaType : 802.3 PhysicalMediaType : 802.3 InterfaceOperationalStatus : Down AdminStatus : Up LinkSpeed(Mbps) : 0 MediaConnectionState : Disconnected ConnectorPresent : True DriverInformation : Driver Date 2013-03-28 Version 12.6.47.1 NDIS 6.30 Name : [アダプター名2] InterfaceDescription : Intel(R) 82579LM Gigabit Network Connection InterfaceIndex : 12 MacAddress : xx-xx-0E-04-xx-xx MediaType : 802.3 PhysicalMediaType : 802.3 InterfaceOperationalStatus : Up AdminStatus : Up LinkSpeed(Gbps) : 1 MediaConnectionState : Connected ConnectorPresent : True DriverInformation : Driver Date 2013-03-28 Version 12.6.47.1 NDIS 6.30 PS C:\>
コメント