How to turn on Wi-Fi using the command line on Windows 10

Many people are familiar with the situation where the operating system's graphical interface stops responding to user input or the wireless module driver crashes. In such cases, the standard "Settings" menu may not display the network switch, leaving the computer owner without internet access. The only reliable way to restore the connection is to use the system command line utility, which has a higher command execution priority than regular user applications.

Using the console allows you not only to force the adapter to start, but also to perform a deep diagnosis of the system state, reset the DNS cache, or check saved connection profiles. Command line (cmd) is a powerful administration tool built into the OS kernel that bypasses many software interface blockers. Below, we'll outline a step-by-step procedure to help you regain access to your wireless network.

Before entering complex instructions, ensure you have administrator privileges. Without elevated privileges, the Windows security system blocks changes to network settings. It's also worth checking the physical condition of your hardware: if your keyboard has a hardware Wi-Fi switch or Airplane Mode is enabled at the BIOS level, software methods may not work until the hardware limitation is resolved.

Launch Command Prompt with Administrator Privileges

The first and most critical step is to launch the terminal correctly. Launching it through the search or Start menu will open the console with limited privileges, resulting in an "Access Denied" error when attempting to manage network interfaces. To avoid this, press the following key combination: Win + X and select the item from the menu that appears Windows PowerShell (Administrator) or Command Prompt (Administrator).

An alternative way is to search for a program cmd via the taskbar. After the search results appear, right-click the icon and select "Run as administrator." Confirm the action in the User Account Control (UAC) window by clicking "Yes." This action grants the session the necessary permissions to change the configuration. network adapter.

The window's appearance may differ depending on the Windows 10 build version: in older versions, it will be the classic black window, while in newer versions, it will be the blue PowerShell interface. For the purposes of this guide, both options are equally suitable, as the basic network shell commands netsh Both interfaces support them. Make sure the cursor is blinking and ready for text entry.

⚠️ Attention: If the system prompts you for your account password when running as administrator and you don't remember it, you won't be able to complete these steps. In this case, you'll first need to restore access to the account or use the built-in Administrator account.

📊 What type of connection do you have to your router?
Wired Ethernet
Wi-Fi 2.4 GHz
Wi-Fi 5 GHz
Mobile Internet via USB

Diagnostics of the state of wireless interfaces

Before attempting to enable Wi-Fi, you should understand the current system state. The command line allows you to obtain detailed information about all network interfaces installed on the system. To do this, use the command netsh interface show interfaceIt will display a list of all connections, indicating their status (connected, disconnected) and type.

Find the line in the list that says "Wireless Network" or "Wi-Fi." Look at the "Status" column. If it says "Disabled," the adapter is disabled by software and requires activation. If the status is "Connected" but there's no internet connection, the problem may lie with your IP or DNS settings, not the adapter itself.

For a more detailed check, you can use the utility ipconfig. Enter the command ipconfig /all and locate the "Wireless LAN Adapter" block. This displays the physical address (MAC), the presence of an assigned IP address, and the media status. If (Media) is listed as "Disabled," this confirms that the device needs to be enabled.

What do diagnostic error codes mean?

If you receive an error message when running commands, it could indicate a variety of issues. Code 10 (Device cannot start) often indicates a driver conflict. Code 43 (Device reported problems) could indicate a hardware failure or a malfunction in the controller. In such cases, simple software activation may not help, and you'll need to reinstall the drivers or reset the BIOS.

Activating a Wi-Fi adapter via netsh

The main network management tool in Windows is the utility netsh (Network Shell). It allows you to configure and monitor the operating system's network components. To enable the wireless interface, we need to know its exact name, which we found out in the previous step (usually it's "Wireless Network" or "Wi-Fi," but in English-language systems it's "Wi-Fi" or "Wireless Network Connection").

Enter the following command to activate the interface:

netsh interface set interface name="Wi-Fi" admin=enabled

Please note that if your connection name is different (e.g. "Wireless Network"), the command should look like this: netsh interface set interface name="Wireless Network" admin=enabledQuotation marks are required if the name contains spaces. After executing the command, the system should confirm success, although there may be no explicit success message—a new line will simply appear for input.

Check the result by running the command again netsh interface show interfaceThe status should change to "Connected." If this happens, the operating system will begin searching for available networks. In some cases, you may need to restart your computer for the changes to fully apply, especially if the adapter driver was in deep sleep.

☑️ Adapter activation checklist

Completed: 0 / 5

Managing profiles and connecting to the network

After successfully activating the adapter, you need to connect to a specific access point. If you've previously connected to this network, Windows has saved its profile. To see a list of saved profiles, use the command:

netsh wlan show profiles

The "User Profiles" list will show all known networks. To connect to one, use the command:

netsh wlan connect name="Network_Name" ssid="Network_Name"

Here is the parameter name indicates the name of the saved profile, and ssid — the name of the network itself (usually they are the same). If the network requires a password and it isn't saved, the system may request it through a standard pop-up window, or the connection will fail until manual authorization is performed through the graphical interface.

Team Description of action Necessary rights
netsh wlan show profiles Displays a list of all saved Wi-Fi profiles. User
netsh wlan connect name="Name" Connects to the specified profile. Administrator
netsh wlan delete profile Deletes a saved network profile. Administrator
netsh wlan show interfaces Shows detailed information about the current connection. User

Resetting network settings and resolving conflicts

Sometimes, enabling the adapter doesn't resolve the issue because errors or addressing conflicts have accumulated in the TCP/IP stack. In this case, a complete reset of the network settings is an effective solution. This will restore the configuration to factory defaults, removing static IP addresses and resetting the DNS.

Run the following commands in sequence, waiting for each one to complete:

netsh winsock reset

netsh int ip reset

ipconfig /release

ipconfig /renew

ipconfig /flushdns

Team netsh winsock reset Reloads the Winsock directory, which often resolves internet connection issues caused by corrupted network sockets. Resetting the IP address and flushing the DNS cache ensures that your computer requests a fresh configuration from the router.

⚠️ Attention: After executing the Winsock and IP addressing reset command, a full computer reboot is required. Without a restart, the changes will not take effect, and the network stack may not function correctly.

If the problem persists after a reset, it may be a driver issue. You can try deleting the device from the command line and allowing the system to find it again. To do this, use the Device Manager, which is invoked by the command devmgmt.msc, where in the "Network adapters" section you need to remove your Wi-Fi module and update the hardware configuration.

Signal analysis and communication quality diagnostics

For advanced users and system administrators, it's important not only to enable Wi-Fi but also to assess the signal quality. The command line provides tools for viewing detailed connection statistics. netsh wlan show interfaces Displays the current signal level as a percentage, the receive/transmit speed and the type of encryption used.

It's also useful to know what channel your network is on and whether there's any interference. While this is difficult to do using standard cmd tools, the command netsh wlan show networks mode=bssid will display a list of all available networks within range, their channels, and signal strength. This helps you choose the least congested channel for configuring your router.

Pay attention to the parameter Radio type (Radio Type). This will show whether your adapter operates in the 802.11n, 802.11ac, or newer standards. If you see the older 802.11g standard but your router supports 5 GHz, the adapter may be connected to the wrong frequency or the driver may not allow the maximum speed.

Frequently Asked Questions (FAQ)

What should I do if the netsh command returns the error "The query parameter is incorrect"?

Most often, this means you misspelled the interface name. Names are case-sensitive and space-sensitive. Use the command netsh interface show interface, copy the name exactly as it appears in the list and paste it into the activation command, making sure to enclose it in quotation marks.

Is it possible to enable Wi-Fi if the driver is completely removed?

No, the command line manages the software portion of an already installed driver. If the driver is uninstalled or the device is hidden in Device Manager as "Unknown," you must first restore the driver, possibly using a wired connection or a bootable USB drive.

How do I know if my adapter supports monitor mode via cmd?

Enter the command netsh wlan show driversInformation about the adapter's capabilities can be found in the "Supported Network Types" or "Hosted Network Compatibility" sections. However, support for Monitor Mode for sniffing traffic in Windows via standard drivers is rarely implemented and requires specific software.

Why doesn't the network appear in the list of available ones after turning on the adapter?

The WLAN AutoConfig (WlanSvc) service may be stopped. Check its status with the command sc query WlanSvcIf the status is STOPPED, start it with the command net start WlanSvcWithout this service, Windows will not be able to scan the air.