≡ Menu

How to disable/enable WiFi Connection

This article shows how to disable/enable Wireless network connection(WiFi) on a windows system from command line. We can also find the status of network connections, check if they are connected or disconnected.

Disable Wifi from command prompt

Open elevated administrator command prompt and run the below command

netsh interface set interface name="Wireless Network Connection" admin=DISABLED

After running the command, you can immediately see in System tray (Right bottom corner on your windows screen) that WiFi is disconnected. In network connections, it shows it as disabled.

Wifi connection disabled

How to Enable Wifi network connection

Run the below netsh command to enable Wifi connection from command line.

netsh interface set interface name="Wireless Network Connection" admin=ENABLED

To check if Wifi is connected/disconnected

Run the below netsh show command that displays all network interfaces and their connection status.

netsh interface show interface

This command shows the status of all network connections on your computer. You can see the status of LAN network connection too.
Example:

C:\>netsh interface show interface
Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled        Connected      Dedicated        Wireless Network Connection
Enabled        Disconnected   Dedicated        Local Area Connection
Disabled       Disconnected   Dedicated        Cisco AnyConnect Secure Mobility Client Connection

The above shows that Wifi is connected on the computer.

Errors

This command needs to be run from elevator command prompt to make any changes to the network connection configuration. Running from normal command prompt throws up error as below.

C:\>netsh interface set interface name="Wireless Network Connection" admin=DISABLED
An interface with this name is not registered with the router.
0 comments… add one

Leave a Comment