If you need to disable a NIC from command line on windows this is the path:
wmic nic get name, index
Check then index of the NIC you want to disable and run:
wmic path win32_networkadapter where index=[NIC number] call disable
…change the [NIC Number] with the index of the wanted network card.
Now in the control panel, you should see that the desired network connection is now disabled.
To enable it again:
wmic path win32_networkadapter where index=[NIC number] call enable
If you what to disable some type of devices (like WiFi), type this command to check the NetConnectionID attribute:
wmic nic get name, index, NetConnectionID
and disable it selecting by NetConnectionID:
wmic path win32_networkadapter where 'NetConnectionID like "%Wi-Fi%" ' call disable
wmic path win32_networkadapter where NetConnectionID="Wi-Fi" call disable
All these tasks can be done with netsh or powershell.
netsh interface show interface
netsh interface set interface "Wi-Fi" disabled
Get-NetAdapter -Name wi-fi | Disable-NetAdapter -Confirm:$false