How to Disable WiFi in Windows 10 Using CMD or Powershell? Many tasks are initiated from the Windows 10 command line and Powershell, including managing Internet settings. In this step-by-step article, I will show you how to disable WiFi in Windows 10 using CMD or powershell.
Built-in netsh tool, a command line utility for managing network connections and settings. You can use it to stop, enable, connect or disconnect Wi-Fi and Ethernet connections to do more work.
Disable Wi-Fi connections in Windows 10 Windows 10 has a built-in Netsh tool, a command-line utility for managing network connections and settings. It allows you to disable, enable, enable or disable Wi-Fi and Ethernet connections, etc. Let’s see what commands are needed to disable WiFi connections in Windows 10.
Related: How to Protect your Wifi From FragAttacks and Attackers
How to disable WiFi in Windows 10 using CMD or Powershell
Here are the steps required to disable WiFi in Windows 10 with Command Prompt or Powershell:
1. Disable WiFi Using Command Prompt
- Firstly, go to the Search option in Windows 10 and search for Command Prompt.
- Then, open the Command Prompt app and tap on the Run as Administrator option to start CMD with administrator privilege.
- Before entering the command to disable Wi-Fi, you need to know the name of the wireless interface to be disabled. So, first, enter the following command to display the name of the network interface:
netsh wlan show interfaces
- Now, write the below command which you can use to disable WiFi in Windows 10:
netsh interface set interface name=”WirelessNetworkName” admin=DISABLED
- Instead of WirelessNetworkName, write the name of your wireless interface (see below screenshot for example).
- After putting the command, tap Enter to run it; it will disable WiFi on your PC.
Here are some other commands that you must know in case you want to switch WiFi settings:
- To enable WiFi connection again, enter this command:
netsh interface set interface name=”WiFiNetworkName” admin=ENABLED
- If you want to simply disconnect WiFi, you can use this command:
netsh wlan disconnect
- To connect to a specific WiFi connection, this command can be used:
netsh wlan connect name=”WiFiNetworkName”
2. Disable WiFi using Powershell
- Go to the Search option of Windows 10 and type Powershell.
- Next, run it with administrator privilege, as depicted in the below screenshot.
- Now, to know the adapter name which you want to disable, you can use the following command in Powershell:
Get-NetAdapter | format-table
- After that, write the below command and press Enter to disable your WiFi:
Disable-NetAdapter -Name “Adapter-
- If you want to enable your WiFi again, simply use the below command in Powershell:
Enable-NetAdapter -Name “Adapter-Name” -Confirm:$false
Therefore, you can disable WiFi in Windows 10 using CMD or powershell, or use them directly to turn on Wi-Fi.
Just enter the disconnect command and the WiFi connection on your computer will be disconnected. When you want to turn on Wi-Fi again, you can use the other commands mentioned to turn on the Wi-Fi connection.