How to enable Wi-Fi on a Windows 10 laptop using the command line

The situation when the wireless connection suddenly stops working at the most inopportune moment is familiar to many users of the operating system Windows 10Often, standard graphical interface solutions are unavailable: menu buttons may be hidden, and settings may be blocked by system glitches. In such cases, command line becomes a powerful tool that allows you to bypass visual bugs and forcefully activate the network adapter.

Using the console CMD Provides direct access to network interface management, bypassing potential graphical shell errors. This is especially relevant for system administrators and advanced users who need to quickly recover Internet connection Without rebooting your computer or searching through the settings menu for the cause. Below, we'll walk you through the process of activating Wi-Fi using the operating system's built-in utilities.

Before you start entering complex commands, it's important to make sure you understand what's going on. We'll be interacting with drivers and low-level system services. This requires attention to detail and precise adherence to instructions, as any typo can result in the system not recognizing the command correctly. However, if done correctly, the results will be immediate and effective.

Preparing the environment and running the console with administrator rights

The first and most critical step is to obtain the necessary privileges. Operating system Windows 10 strictly controls access to network hardware settings, so running the command line in normal user mode won't produce the desired result. You'll need to run the terminal as administratorto gain full control over network interfaces.

There are several ways to open the desired tool. The fastest is to press a keyboard shortcut. Win + X and select "Windows PowerShell (Administrator)" or "Command Prompt (Administrator)". Alternatively, you can type in the query cmd In the Start menu search bar, right-click on the found application, and select the appropriate menu item. Without this, further actions will be impossible.

⚠️ Attention: If the system prompts you for account confirmation (UAC) when attempting to run as administrator, be sure to click "Yes." Ignoring this prompt will cause the console to open with limited privileges, and network management commands will return an access denied error.

After successful launch, you'll see a black window with a blinking cursor. This is our workspace. Copying text using the usual keyboard shortcuts doesn't work here, so be careful when entering characters. To paste text in modern versions PowerShell and the updated console CMD Often it's enough to just right-click or press Ctrl + V.

Diagnostics of network interface status

Before attempting to enable wireless communication, it is necessary to understand the current state of the system. Command line Provides comprehensive information about all connected and available network adapters. This will help you determine whether your computer can even see your Wi-Fi equipment, or whether the problem lies deeper, such as missing drivers.

To get a list of all network interfaces, a powerful utility is used. netsh. Enter the following command and press the key Enter:

netsh interface show interface

The result will be a table listing all active connections. We're interested in the "Name" and "State" columns. A wireless adapter is typically named "Wireless Network," "Wi-Fi," or "Wireless Network Connection." If your adapter's name is listed, but its status is "Disconnected," then we're on the right track.

What should I do if the adapter is not displayed in the list?

If the netsh interface show interface command doesn't mention the wireless adapter, this may indicate a critical driver issue or a physically disabled module. In Device Manager (devmgmt.msc), check the "Network Adapters" section. If the device is marked with a yellow exclamation point or is missing entirely, enabling it using CMD won't help—you'll need to reinstall the drivers or check the hardware.

It is important to correctly identify the interface name, as it will be used in subsequent commands. In Russian versions In Windows 10, it often contains spaces, requiring special syntax when entering. Don't confuse the Wi-Fi adapter with an Ethernet connection or virtual interfaces created by programs like Hamachi or VirtualBox.

Activating a Wi-Fi adapter via CMD

Once we have found out the exact name of the network interface, we can proceed to direct activation. Enable command It's simple, but it requires precision in spelling the adapter name. If the name contains spaces, it must be enclosed in quotation marks, otherwise the system will only recognize the first word of the command.

Use the following syntax to activate:

netsh interface set interface "YourWi-Fi Name" enabled

Replace the text in quotation marks with the actual name you saw in the previous step. For example, if the adapter is called "Wireless Network," the command would look like this: netsh interface set interface "Wireless Network" enabledAfter entering, press EnterIf the command is successful, the system will not display any messages and will simply return the input line. This is normal console behavior and indicates no errors.

☑️ Check Wi-Fi activation

Completed: 0 / 4

To disable the adapter (if this is required to reset the state), a similar command is used, but with the parameter disabled at the end. This can be useful if the driver is frozen and requires a soft reboot without shutting down the computer. After turning it on, try connecting to your access point again.

Managing profiles and searching for networks

Once the adapter is activated, you may need to search for available networks or manage saved profiles. The standard interface sometimes doesn't display a list of available access points, and this is where netshThe airwaves scan command allows you to see all signals, their channels, and encryption types.

To start scanning, enter:

netsh wlan show networks

This command will list all detected networks. You'll see their SSID (name), security type (e.g., WPA2-Personal), and signal strength. This confirms that wireless module It's working correctly and receiving data from the surrounding area. If the list is empty even though the router is on, you may be too far away or there's a problem with the antenna.

Parameter Description Importance for Wi-Fi
SSID Wireless network name For example, Home_WiFi
Signal Reception level From 1% to 100%
Auth type Authorization method WPA2-Personal
Cipher type Encryption method CCMP

It is also useful to know how to delete an old profile if the password has been changed, but the laptop tries to connect with an error. Command netsh wlan delete profile name="Network_Name" Clears saved data, allowing you to enter a new password. This often resolves issues with constant connection drops.

📊 Have you ever encountered a problem where your Wi-Fi adapter disappeared from your system?
Yes, the driver crashed
No, it always works stably.
The problem was with the router
I don't know how to check

Reset network settings and clear cache

Sometimes simply enabling the adapter doesn't help if errors or IP address conflicts have accumulated in the network settings. In such cases, a comprehensive TCP/IP stack reset and DNS cache flush are required. These steps often resolve issues where Wi-Fi appears to be enabled, but web pages won't load in the browser.

Execute the following commands in sequence by pressing Enter after each:

  • 🔄 ipconfig /release — releases the current IP address.
  • 🔄 ipconfig /renew — requests a new address from the router.
  • 🗑️ ipconfig /flushdns - clears the DNS cache, which solves problems with opening websites.
  • 🔧 netsh winsock reset — resets Windows socket settings, often required after viruses or crashes.

After executing the Winsock reset command, the system may require a reboot to apply the changes. This is normal, as deep system libraries are affected. The netsh winsock reset command is critical for troubleshooting connection errors that are not resolved by simply reconnecting.

⚠️ Attention: Interfaces and exact command names may vary slightly across Windows 10 builds (Home, Pro, Enterprise) or after major updates (21H2, 22H2). If the standard commands don't work, check the latest Microsoft documentation or use the built-in help by entering netsh /?.

Driver diagnostics and troubleshooting

If the commands execute but Wi-Fi doesn't turn on, the problem may be with the driver. You can use the command line to check whether the driver is loaded at all. driverquery Displays a list of all installed drivers. To find the one you need, use the filter:

driverquery | findstr /i"wireless"

This command will filter the output, leaving only lines containing the word "wireless." If the driver is marked as stopped or missing, you need to reinstall it through Device Manager. It's also worth checking the "WLAN AutoConfig" service, which is responsible for wireless connections. Make sure it's started with the command:

sc query wlansvc

If the service status is not "RUNNING", start it with the command net start wlansvcWithout this service, the operating system cannot manage wireless connections, regardless of the adapter's status. This is a common reason why the Wi-Fi slider in the Action Center is grayed out and inactive.

Frequently Asked Questions (FAQ)

What should I do if the command prompt says "Access Denied"?

This means the console is not running as an administrator. Close the window and run cmd or PowerShell Right-click and select "Run as administrator." Without these rights, changing the interface state is prohibited by the security system.

Is it possible to turn on Wi-Fi if the button on the laptop is physically turned off?

No. If your laptop has a physical switch or a key combination (Fn + F-key) that disables the module's power supply, software commands won't help. First, make sure the Wi-Fi indicator on the laptop is lit or blinking.

How do I reset all network settings to factory defaults?

Windows 10 has a built-in reset feature. You can run it in the command line netsh winsock reset And netsh int ip reset, and then reboot. Also in Windows Settings, there's a section called "Network & Internet" -> "Status" -> "Network Reset."

Why did the Wi-Fi adapter disappear after a Windows update?

Updates sometimes replace working drivers with generic ones that may not support your specific module. Try rolling back the driver through Device Manager or manually installing the version from the laptop manufacturer.