How to disable/enable network adapter from command line on the Windows 10?

Solution 1:

Open up Command Prompt as Administrator and type the following command line:

netsh interface set interface 'INTERFACE NAME' disable

References:

How to Enable/disable Ethernet network adapter from command line

Solution 2:

Open up PowerShell as Administrator and run the following:

Get-NetAdapter

Get-NetAdapter will list the Network adapter properties

Get-NetAdapter Documentation

Disable a network adapter by name

Disable-NetAdapter -Name "Adapter Name" -Confirm:$false

Disable-NetAdapter Documentation

Enable Network Adapter by Name

Enable-NetAdapter -Name "Adapter Name" -Confirm:$false

Enable Net Adapter Documentation