Open settings of X network adapter from CMD/BAT
Solution 1:
PowerShell is your friend.
- Start -> Type 'Powershell' -> Right Click -> Run As Administrator
- Set-ExecutionPolicy Unrestricted -force
- 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