https://devblogs.microsoft.com/scripting/enabling-and-disabling-network-adapters-with-powershell/
List interfaces | |
---|---|
Get-NetAdapter | |
list only interface not UP | Get-NetAdapter | ? status -ne up |
disable | disable-NetAdapter -Name Ethernet2 |
enale |
...
https://devblogs.microsoft.com/scripting/enabling-and-disabling-network-adapters-with-powershell/
List interfaces | |
---|---|
Get-NetAdapter | |
list only interface not UP | Get-NetAdapter | ? status -ne up |
disable | disable-NetAdapter -Name Ethernet2 |
enale |
...