Via de volgende stappen kun je de netwerkkaart in of uitschakelen.

Open de Network Connections en kijk naar de namen van de netwerkkaarten.

netsh_1

Voer nu een van de volgende commando’s uit:

Enable: netsh interface set interface “Local Area Connection ” ENABLE (waar “Local Area Connection” is de naam van de NIC binnen Windows).

Disable: netsh interface set interface “Local Area Connection ” DISABLE (waar “Local Area Connection” is de naam van de NIC binnen Windows).

De kaart word in of uitgeschakeld:

netsh_2

Voor meer informatie over netsh kun je het volgende commando uitvoeren binnen CMD: netsh /? of via de volgende websites:

One thought on “How to: Enable / Disable Network Interfaces through a script

  1. im typing

    netsh interface set interface (name) DISABLED

    and get an error I try with

    netsh interface set interface (name) DISABLE

    and get the same thing

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.