How to Enable Wi-Fi Using CMD: A Windows Guide

It often happens that the operating system's graphical interface stops responding correctly to user actions. In this situation, standard methods for activating the wireless module become unavailable. This is when command line, which has deeper access rights.

Using console utilities allows you to not only activate your network adapter but also conduct in-depth diagnostics. This is a powerful tool for system administrators and advanced users. Below, we'll detail the process of establishing a wireless connection without using a mouse or settings menu.

Before entering commands, ensure you have administrator rights. Without the appropriate privileges, the system will block changes to network settings. This is a basic security requirement. Windows, which cannot be ignored.

Launch Command Prompt with Administrator Privileges

The first step is to open the interface for entering text instructions. Simply launching via search may not be sufficient, as standard mode doesn't grant the necessary privileges. You'll need elevated mode.

There are several ways to get to the desired window. The fastest is to use a keyboard shortcut. Win + R and enter cmd, but this will open a regular window. To gain administrator rights, it's best to right-click the Start menu icon and select the appropriate option. Alternatively, you can type "cmd" in the search box, right-click the result, and select "Run as administrator."

After a black window with a blinking cursor opens, you'll see the path to your account. This indicates that the system is ready to accept commands. Any actions you perform now will apply to the entire system, not just the current user.

⚠️ Warning: Be extremely careful when entering commands. Syntax errors may disable other network services or change critical system settings.

Finding the network adapter name

Before managing your device, you need to know its exact system name. In your operating system, it may differ from the familiar "Wi-Fi" or "Wireless Network." Common names include "Wireless Network," "Wi-Fi," or "Wireless Network Connection."

To obtain a list of all network interfaces, use the utility netshEnter the following command and press Enter:

netsh interface show interface

In the list that opens, find the line where "Wireless Network" is listed in the "Type" column. Note the name in the "Name" column. You'll need this value for further steps. If you have multiple adapters, it's important not to mix them up.

Administrative name State Type Description
Wi-Fi Disabled Wireless network Intel(R) Wi-Fi 6 AX201
Ethernet Connected Dedicated line Realtek PCIe GbE Family Controller
Bluetooth Disabled Wireless network Bluetooth Device (Personal Area Network)
VMnet1 Connected Dedicated line VMware Virtual Ethernet Adapter

Write down or copy the name of your adapter. In most modern Russian-language systems, it is simply called Wi-FiIf you have the English version, search for the word Wireless.

📊 What is the name of your adapter in the list?
Wi-Fi
Wireless network
Wireless Network
Another name

Activating the wireless interface

Once the name is obtained, you can proceed to the actual activation. The command to activate the interface is simple and concise. It sends a signal to the driver to enter the active state.

Enter the following structure, replacing "AdapterName" with the one you found in the previous step (for example, Wi-Fi):

netsh interface set interface "AdapterName" enabled

For example, for a standard name the command would look like this: netsh interface set interface "Wi-Fi" enabledPlease note that quotation marks are required if the name contains spaces. After pressing Enter, the system should confirm the action or simply return the cursor to a new line without error.

If the command is successful, the network indicator in the system tray should change state. A list of available access points will appear. In some cases, it may take a few seconds for the driver to initialize.

⚠️ Note: Network settings interfaces and command names may differ slightly depending on the Windows version (10, 11) and the installed language locale.

☑️ Activation check

Completed: 0 / 5

Diagnosing and resetting network settings

There are situations where simply activating the adapter doesn't help. The adapter is enabled, but networks aren't found, or the connection keeps dropping. In such cases, deeper intervention into the protocol stack is required. TCP/IP.

The first thing you should try is resetting your IP settings. This will clear the cache and return the settings to factory defaults. Run the command:

netsh int ip reset

Next, it is recommended to flush the DNS cache, as old records may interfere with the connection. To do this, enter the command ipconfig /flushdnsAfter completing these steps, it's best to restart your computer for the changes to take full effect.

It's also useful to check the status of your drivers. While CMD can't directly update drivers, it does allow you to see if a device is disabled at the system level. The command pnputil scan-devices will show changes in the hardware, but for detailed work with drivers it is better to use the Device Manager.

What should I do if the command returns an "Access Denied" error?

This means you launched the Command Prompt without administrator privileges. Close the window, right-click the CMD shortcut, and select "Run as administrator." Without this step, system changes are impossible.

Managing Wi-Fi profiles via the console

The command line not only allows you to enable and disable the adapter but also manage saved profiles. You can delete old networks that are no longer used or export passwords to transfer to another computer.

To see a list of all saved profiles, use the command:

netsh wlan show profiles

If you want to delete a specific profile, for example "Home_WiFi", enter: netsh wlan delete profile name="Home_WiFi"This is useful if the network has changed its password or encryption type, and the old settings are preventing the connection.

You can also force your computer to connect to a known network. The command netsh wlan connect name="Profile_Name" Initiates the connection process. This is especially useful when writing automation scripts.

⚠️ Note: Deleting a network profile will result in the loss of your saved password. Make sure you remember your login information before deleting the profile.

Common mistakes and how to solve them

When working with the console, users often encounter common problems. Understanding the causes of errors will help restore network functionality more quickly. Most often, problems are related to syntax or service status.

  • Error: "Parameter is specified incorrectly": Most likely, you have specified the interface name incorrectly. Check it using show interface once again, taking into account the case and spaces.
  • Command not found: Make sure you haven't misspelled the utility name. netshAlso check if access to the command prompt is blocked by group policies.
  • The adapter does not turn on: The device may be disabled physically or in the BIOS. Check for a switch on the laptop case or a key combination. Fn + F-key with an image of an antenna.

If software solutions don't help, the problem may be hardware-related. Try updating drivers through Device Manager or the manufacturer's website. In rare cases, completely reinstalling the network stack may help.

Additional features of Netsh WLAN

Utility netsh It offers extensive functionality beyond simple activation. It allows you to create configuration files, manage power-saving modes, and even create virtual access points.

For example, you can turn your laptop into a router that distributes internet. To do this, create a network with the command netsh wlan set hostednetwork mode=allow ssid=MyNetwork key=PasswordAfter setting up, simply start the network with the command start hostednetwork.

There is also a function available to view detailed information about the current connection. Command netsh wlan show interfaces will provide information about connection speed, encryption type, signal strength, and channel. This is valuable information for diagnosing connection quality.

For those who want to automate the process, all these commands can be written into a text file with the extension .batRunning this file as an administrator will perform all actions instantly. This saves time when frequently reconfiguring the network.

How to find a saved Wi-Fi password using CMD?

Enter the command netsh wlan show profile name="Network_Name" key=clearIn the "Security Settings" section, find the "Key Contents" line—your password will be displayed there in clear text.

Is it possible to turn on Wi-Fi if the driver is not installed?

No, the command line works with already installed software. If the driver is missing, the system won't see the device, and netsh commands won't work. Install the driver first.

What should I do if the WLAN AutoConfig service is disabled?

Without this service, Wi-Fi will not work. Enter services.msc, find the "WLAN AutoConfig" service, set the startup type to "Automatic" and click "Start".

Do these commands work in Windows 7 and 8?

Yes, the netsh utility is standard in all modern versions of Windows since XP, although the syntax of some parameters may differ slightly in very old versions.

How to reset all network settings with one command?

Use the command netsh winsock reset to reset the Winsock catalog and netsh int ip reset to reset the IP protocol. A reboot is required after this.