Open settings of X network adapter from CMD/BAT

Solution 1:

PowerShell is your friend.

  1. Start -> Type 'Powershell' -> Right Click -> Run As Administrator
  2. Set-ExecutionPolicy Unrestricted -force
  3. Run the following. The last line here is piping to gm (Get-Member), and that shows you some of what you can do here.
PS C:\WINDOWS\system32> Get-NetAdapter | ?{$_.Name -like 'Ethernet'} | ft -a

Name     InterfaceDescription               ifIndex Status MacAddress        LinkSpeed
----     --------------------               ------- ------ ----------        ---------
Ethernet Realtek PCIe GBE Family Controller      15 Up     D8-CB-8A-66-87-BC    1 Gbps

PS C:\WINDOWS\system32> Get-NetAdapter -InterfaceIndex 15 | ft -a

Name     InterfaceDescription               ifIndex Status MacAddress        LinkSpeed
----     --------------------               ------- ------ ----------        ---------
Ethernet Realtek PCIe GBE Family Controller      15 Up     D8-CB-8A-66-87-BC    1 Gbps

PS C:\WINDOWS\system32> $na = Get-NetAdapter -InterfaceIndex 15
PS C:\WINDOWS\system32> $na | gm