You turned on your laptop, but the Wi-Fi isn't working? Or did the adapter suddenly "disappear" from the list of networks after a Windows update? In 80% of cases, the problem can be resolved without rebooting—just a few commands in command line or PowerShellThis guide will detail how to activate a Wi-Fi adapter using console utilities, even if the Windows interface is disabled or the touchpad is unresponsive.
We will look at three main methods: classic commands netsh, control through devcon (a Microsoft utility) and alternative methods for cases when the adapter "doesn't see" commands. We'll separately examine typical errors like "The operation failed." and we'll explain why sometimes only reinstalling the driver through the console helps. All instructions have been tested on Windows 10/11, but most teams also work on Windows 7/8 (taking into account the specific features).
Warning: If you've never used the command line before, start with the "Checking the adapter status" - it explains how to make sure that the problem is a software shutdown, and not a physical malfunction of the antenna or module.
1. How to check if the Wi-Fi adapter is enabled using the command line
Before turning on the adapter, you need to understand its current status. To do this, use the utility netsh - It is built into all versions of Windows and does not require administrator rights to check the status.
Open Command Prompt (Win + R → enter cmd → Enter) and run:
netsh interface show interface
In the results, find the line with the name of your Wi-Fi adapter (usually contains the words Wireless, Wi-Fi or the name of the manufacturer, for example Intel(R) Wi-Fi 6). Pay attention to the column "State":
- 🔴 Disabled — the adapter is disabled by software, it can be enabled using commands.
- 🟢 Connected — the adapter is active, but the networks may be disabled (check
netsh wlan show interfaces). - ⚪ Not Present — the driver is not installed or the adapter is physically disconnected (for example, by a button on the laptop case).
If your adapter is not listed at all, the problem is deeper - most likely it is disabled WLAN AutoConfig service or the driver is damaged. Proceed to the section "Enabling WLAN service».
⚠️ Attention: On some laptops Lenovo And HP The Wi-Fi adapter may be blocked at the BIOS level. If the commands don't help, check the BIOS settings (sectionAdvanced → Wireless DeviceorConfiguration).
2. Enable the Wi-Fi adapter using the netsh command
If in the previous step you saw the status "Disabled", you can enable the adapter with a single command. To do this:
- Launch the command prompt as administrator (
Win + X→Terminal (Administrator)). - Enter the command, replacing
Adapter_Nameto the name from the previous step (for example,Wi-FiorWireless network):netsh interface set interface "AdapterName" enable - Check the result with the command
netsh interface show interface— the status should change to "Connected".
If the command returned an error The operation failed., the reasons may be the following:
- 🔌 The adapter is blocked physical button on the laptop case (for example, on models Dell Latitude or ThinkPad).
- 🔧 You don't have administrator rights (even if you ran CMD as an administrator, try PowerShell).
- 🚫 Service
WLAN AutoConfigdisabled (see next section).
Make sure the adapter is not disabled by a physical button|
Run CMD as administrator|
Check the adapter name with the command `netsh interface show interface`|
Try the alternative command `netsh interface set interface "Wi-Fi" admin=enable`-->
On laptops with Windows 11 Sometimes an alternative command helps:
netsh interface set interface "Wi-Fi" admin=enable
3. Enable WLAN AutoConfiguration service (if the adapter is not detected)
If the adapter is not in the list netsh or the commands return errors, a disabled service is to blame WLAN AutoConfigIt is responsible for managing wireless connections and is often disabled after virus attacks or "optimizations" through CCleaner.
To enable the service:
- Open Command Prompt with administrator rights.
- Execute the commands in order:
sc config Wlansvc start=autosc start Wlansvc - Restart your laptop (required!).
After rebooting, check the service status:
sc query Wlansvc
The results should contain the line STATE: 4 RUNNINGIf the service does not start, the reasons may be as follows:
| Error | Cause | Solution |
|---|---|---|
1075 | Service dependencies are not running | Enable services NDIS And PlugPlay similar commands |
1068 | The service is blocked by group policy. | Check it out gpedit.msc → Computer Configuration → Administrative Templates → Network → Wireless Settings |
1053 | The service is not responding (often after updates) | Reinstall the adapter driver (see section 6) |
⚠️ Attention: On corporate laptops (for example, with Windows 10 Pro/Enterprise) service Wlansvc This feature may be disabled by a domain administrator. In this case, enabling it will require domain administrator rights.
4. Alternative method: managing the adapter via devcon
If netsh didn't work, try the utility devcon from Microsoft. It allows you to enable/disable devices based on their ID and often saves when standard commands do not work.
Download devcon With official Microsoft website (chapter Download the DevCon tool) and follow the steps:
- Unzip the archive and copy the files
devcon.exeVC:\Windows\System32. - Find out Adapter ID command:
devcon findall =netIn the results, find the line with Wi-Fi and copy
PCI\...orUSB\.... - Turn on the adapter (replace
DEVICE_IDto the copied ID):devcon enable "DEVICE_ID"
Devcon works even with adapters that are not displayed in netsh, but requires an exact ID. If the command returns an error No devices found, check that the ID is correct or try the alternative syntax:
devcon enable =net Wi-Fi
5. Enable Wi-Fi via PowerShell (for Windows 10/11)
PowerShell offers more flexible tools for managing adapters than the classic command line. For example, you can enable an adapter by its index or name, even if it contains spaces or special characters.
Open PowerShell as administrator and run:
- Get a list of all network adapters:
Get-NetAdapter | Select Name, InterfaceDescription, Status - Find your Wi-Fi adapter in the list and copy it.
Name(For example,Wi-FiorWireless Network Connection). - Turn on the adapter:
Enable-NetAdapter -Name "Wi-Fi" -Confirm:$false
If the command returns an error PermissionDenied, try adding a flag -Force:
Enable-NetAdapter -Name "Wi-Fi" -Confirm:$false -Force
IN Windows 11 sometimes an alternative method helps through WMI:
$adapter = Get-CimInstance -ClassName Win32_NetworkAdapter | Where-Object {$_.Name -like "Wi-Fi"}
$adapter.Enable()
⚠️ Attention: IN PowerShell 7+ (installed separately) some commands NetAdapter may not work. Use the classic one. PowerShell 5.1 (built into Windows).
6. Reinstalling the Wi-Fi adapter driver via the command line
If the adapter stubbornly refuses to turn on, the problem may be a corrupted driver. You can reinstall it without the graphical interface—directly through the console.
First, uninstall the current driver:
pnputil /delete-driver oem*.inf /uninstall /force
Then reinstall the driver. If you have .inf- driver file (for example, downloaded from the manufacturer's website), use:
pnputil /add-driver "C:\Path\to\file.inf" /install
To automatically install the driver from Windows Update execute:
devmgr /upd "PCI\VEN_XXXX&DEV_XXXX"
(replace XXXX on Vendor ID And Device ID your adapter - you can find them in Device Manager or through the command wmic nic get DeviceID, Name).
How can I find the adapter's Vendor ID and Device ID?
Open Device Manager (devmgmt.msc), find your Wi-Fi adapter (even if it is disabled), open its properties → tab Intelligence → select Equipment IDCopy the line like this PCI\VEN_8086&DEV_2723 - Here 8086 (Vendor ID) and 2723 (Device ID).
After reinstalling the driver, restart the laptop and check the operation of the adapter with the command netsh wlan show driversThe results should contain the line Radio type: 802.11n/ac/ax (depending on the model).
7. Alternative ways to enable Wi-Fi without the command line
If console commands don't work, try these methods:
- 🖥️ Keyboard shortcut: On most laptops, Wi-Fi is turned on with a combination
Fn + F2(or another function key with an antenna icon). Lenovo A separate button on the sidebar can be used. - 🔄 Network reset: Run in CMD:
netsh winsock resetnetsh int ip reset
ipconfig /flushdnsThen restart your laptop.
- 🔌 Disabling Airplane Mode: Enter the command:
netsh wlan set hostednetwork mode=disallow(This will reset the Wi-Fi sharing settings that sometimes block the adapter).
On laptops ASUS And Acer Sometimes resetting the BIOS to factory settings helps (but this is an extreme measure - it requires reinstalling Windows!).
FAQ: Frequently asked questions about enabling Wi-Fi via the command line
❓ Why the team netsh interface set interface "Wi-Fi" enable doesn't work?
Possible reasons:
❓ Is it possible to turn on Wi-Fi on a MacBook using the command line?
On macOS The terminal is used with other commands. Try:
networksetup -setairportpower en0 on
(replace en0 on your interface - you can find out with the command networksetup -listallhardwareports).
❓ After turning on the adapter, networks aren't showing up. What should I do?
Perform in order:
- Check if the service is enabled
WLAN AutoConfig(cm. Section 3). - Update the list of networks with the command:
netsh wlan connect name="Network_Name" - Reset network settings:
netsh int ip resetnetsh winsock reset - Restart your laptop.
How do I enable Wi-Fi on a Linux laptop using the terminal?
On most distributions, use:
sudo ip link set wlan0 up
sudo systemctl restart NetworkManager
(replace wlan0 on your interface - you can find out with the command ip a).
❓ Is it possible to enable a Wi-Fi adapter via CMD on Windows 7?
Yes, all teams netsh And devcon work in Windows 7, But:
- Instead of PowerShell use classic CMD.
- For
devconmay be required Microsoft .NET Framework 3.5. - In some builds Windows 7 there is no command
Enable-NetAdapter.