How to turn on WiFi using the Windows 10 command line

Sometimes the operating system's graphical interface stops responding correctly, and the usual keyboard or system tray button doesn't activate the wireless connection. In such situations, administrators and advanced users are forced to resort to more advanced system management tools. Windows Command Prompt Provides direct access to network adapter settings, allowing you to bypass graphical shell crashes.

Using the CMD (Command Prompt) console not only allows you to force the communication module to start, but also perform a detailed diagnostic of the driver status. This is especially useful when the Device Manager displays an error and standard troubleshooting tools are ineffective. We'll cover all the necessary steps for activation. WLAN interface without using a mouse.

It's important to understand that working with system commands requires careful attention, as there are no unnecessary confirmations or warning pop-ups. However, if you know exactly what you're doing, this method is the fastest and most reliable way to restore network activity at the system kernel level.

Launch the console with administrator rights

Any actions involving changes to network interface configuration require elevated privileges. Launching the terminal normally will prevent changes from being applied, and the system will return an access error. There are several ways to open the required tool, but the fastest is using the search bar.

Press the key combination Win + S or click the magnifying glass icon on the taskbar. Enter the abbreviation in the search field. cmd or full name Command lineThe corresponding application will appear in the search results. To run it as an administrator, click the "Run as administrator" link on the right side of the window or select the option from the context menu.

After the black window with the blinking cursor opens, make sure the path is indicated in the window title C:\Windows\system32\cmd.exe and the "Administrator" label is present. If this label is missing, network management commands will not work. You can also use the shortcut Win + X and select "Windows PowerShell (Administrator)" or "Windows Terminal", as they are fully compatible with CMD syntax.

Diagnosing the status of a wireless adapter

Before attempting to enable WiFi, you need to ensure that the system even sees the installed hardware and is aware of its existence. The command line allows you to list all network interfaces registered in the operating system, along with their current status.

To obtain this information, use the utility netshEnter the following command and press Enter:

netsh wlan show interfaces

There are several key parameters you're interested in in the system's response. First, the string Name (Name), which indicates the name of your wireless adapter (for example, Intel Wireless-AC 9560 or Realtek RTL8822BE). Secondly, the parameter State (State). If the adapter is disabled by software, this will say "Disabled" or "Not connected." If the driver is missing or the device is faulty, the system may report that the wireless interface is not found.

⚠️ Note: If the command returns the message "The WLAN AutoConfig service is not running," the problem is not with the adapter itself, but with a system service. In this case, you must first start the service. WlanSvc via command net start WlanSvc.

You can also check whether the radio module mode is enabled. Some laptops have a software lock. The command netsh wlan show radio will show the global status of the wireless modules. If the "Software Status" column shows "Disabled," then the blocking is active at the driver or hotkey level.

📊 What adapter status did you see?
The adapter is turned on but not connected.
The adapter is disabled by software.
WLAN service is not running
Adapter not found in the list

Activating the WiFi interface using the netsh command

The main method of enabling the wireless module is to use the context wlan utilities netshThis command allows you to manage wireless network settings, including forcing the interface to be activated even if it has been blocked by the user through the Network and Sharing Center.

The syntax for the enable command is as follows:

netsh wlan set interface name="Your_adapter_name" admin=enabled

Here name="Your_adapter_name" - this is the exact name of the device that you found out in the previous step (for example, Wi-Fi or Wireless network). If the name contains spaces, quotation marks are required. Parameter admin=enabled forces the adapter to the active state.

To turn off the adapter, use a similar command, but with the parameter admin=disabledThis can be useful for quickly rebooting the communication module without having to remove the device or reboot the entire computer. After executing the enable command, it is recommended to restart netsh wlan show interfacesto make sure the status has changed to "Connected" or "Searching for networks".

☑️ WiFi Enablement Algorithm

Completed: 0 / 4

Managing your profile and connecting to the network

Once the physical and logical interfaces are activated, the operating system must be instructed to search for available networks and connect to one. Windows stores lists of previously used WiFi networks in special profiles. If the profile is saved, the connection will be established automatically.

To view the list of saved profiles, use the command:

netsh wlan show profiles

In the "User Profiles" list, you'll see the names of all networks this computer has previously connected to. To initiate a connection to a specific network, use the following command:

netsh wlan connect name="Profile_Name" interface="Adapter_Name"

If the network is open or the password is already saved in the profile, the connection will be established immediately. If the profile is corrupted or the password has been changed, the system will prompt you to enter new data. This is more difficult to do in the command line, so it's best to delete the old profile with the command netsh wlan delete profile name="Name" and connect again via the graphical interface.

Command parameter Description Example of meaning
name Network profile or interface name "Home_WiFi"
interface Network adapter name "Wi-Fi"
admin Administrative management status enabled / disabled
ssid Wireless network name (SSID) "Office_Guest"

Reset network settings and renew IP

Sometimes, the adapter is enabled and the driver is working, but the internet connection fails. Often, the problem lies in an incorrectly obtained IP address or DNS cache. In this case, a complete reset of the TCP/IP stack and a configuration update can help.

The first step is always the DHCP lease renewal command. This forces the computer to re-request an address from the router:

ipconfig /release
ipconfig /renew

First team /release resets the current IP address, the second /renew requests a new one. If the internet still doesn't work after this, try flushing the DNS cache with the command ipconfig /flushdnsThis is especially useful if some websites open while others don't, or if you've recently changed your internet provider.

What to do if ipconfig /renew freezes?

If the address renewal command takes too long to complete or returns a timeout error, this could indicate a cable issue (if using a USB WiFi adapter), a faulty router, or an IP address conflict on the local network. Try rebooting the router.

Alternative method via PowerShell

In modern versions of Windows 10 and 11, the classic command line is gradually giving way to a more powerful tool: PowerShell. The syntax is different, but the principle remains the same. PowerShell uses a module. NetAdapter to manage network interfaces.

To enable WiFi in PowerShell, you first need to get the adapter name with the command Get-NetAdapterFind your wireless module in the list (usually with "Wireless" or "Wi-Fi" in the name). Then use the command:

Enable-NetAdapter -Name "Adapter_Name"

This method is often more informative and provides detailed error reports if the operation fails. Furthermore, PowerShell allows you to create scripts to automatically switch networks when operating conditions change, which is convenient for corporate users.

⚠️ Note: Command line interfaces may change with operating system updates. If commands netsh stop working, check the official Microsoft documentation for your specific Windows build to see if the syntax is up-to-date.

Frequently Asked Questions (FAQ)

Why does the netsh wlan show interfaces command say the interface is not found?

This means the operating system doesn't see the wireless adapter. Possible causes: the driver isn't installed, the device is disabled in the BIOS/UEFI, the adapter is physically faulty, or it's disabled in Device Manager. Check the "Network Adapters" section in Device Manager.

Is it possible to turn on WiFi using a keyboard button via CMD?

No, the command line controls the software. If WiFi is disabled via a physical switch on the laptop or a key combination (Fn+F2), it must first be enabled via hardware. CMD can only disable or enable an already enabled module via software.

How can I find out the exact adapter name for a command?

Use the command netsh wlan show interfacesThe first line of the response will contain "Name." This string (including spaces, if any) must be enclosed in quotation marks in the parameter. name=.

Do I need to restart my computer after turning it on via console?

Typically, a reboot is not required. The changes take effect immediately. However, if after running the command admin=enabled The network icon does not appear. Sometimes briefly turning the adapter off and on using the same commands helps.