Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


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



disabledisable-NetAdapter -Name Ethernet2
enale

...