A situation when after updating the operating system or driver failure wireless adapter stops working, is familiar to many laptop owners. On laptops HP Pavilion or HP ProBook The absence of a visible power button or non-functional function keys can be confusing for the average user. In such cases, standard Windows graphical interfaces are often useless, as the system simply "doesn't recognize" the device or considers it disabled at the software level.
This is where it comes to the rescue command line (CMD), which provides direct access to system services and network settings. Using the console, you can force-enable a wireless network service, reset the TCP/IP protocol stack, or reinstall a driver without having to search for and download installation files from outside. This is especially useful when you need to find a solution but don't have internet access.
In this guide, we will examine in detail the algorithms of actions that will help to revive Wi-Fi module on Hewlett-Packard equipment. We'll cover both basic commands for activating the service and more complex registry and group policy manipulations that can block the connection.
Diagnosing the status of a wireless adapter
Before attempting to turn on the radio module, you need to determine whether the operating system itself can see it and what state it's in. Often, the problem isn't the lack of a signal, but rather that network service The system has stopped or the driver is not working correctly. Initial diagnostics allow you to avoid unnecessary steps and immediately address the specific issue.
To get started, we'll need to launch the console with administrator rights. This is a mandatory requirement, as standard user rights don't allow changes to system services. Press the key combination Win + X and select "Windows PowerShell (Admin)" or "Command Prompt (Admin)". In the window that opens, enter the command to check the service status:
sc query wlansvc
In response, the system will provide information about the current state of the service. WLAN AutoConfigIf you see the status RUNNING, then the service is running, and the problem may be in the driver or physical switch. If the status STOPPED, then it is the stopping of this service that is the reason for the lack of Wi-Fi.
⚠️ Attention: If the team
sc queryIf the error "Service not found" or a similar message appears, this may indicate that the Wi-Fi adapter driver has been completely removed or the device is disabled in the BIOS. In this case, software methods for enabling it via CMD may not work until the drivers are reinstalled.
It's also useful to check whether the device is blocked at the Group Policy or Registry level. For this, you can use the command netsh wlan show interfacesIf you receive a response stating that the wireless interface was not found, this means that the system does not have an active driver for working with the wireless network.
Activating the WLAN AutoConfig service
Service WLAN AutoConfig is a key Windows component responsible for detecting wireless networks, connecting to them, and managing security profiles. Without it running, an HP laptop, even with working hardware, will not be able to initiate a network search. Starting this service is the first and often most effective step in restoring functionality.
To force start the service, use the following command in the console:
net start wlansvc
If the startup was successful, you'll see the message "The WLAN AutoConfig service started successfully." However, to ensure the issue doesn't reoccur after a reboot, you need to change the service's startup type to "Automatic." To do this, follow these steps:
sc config wlansvc start= auto
Please note the syntax: after the parameter start= there must be a space before the word autoMissing a space will result in an error when executing the command. This detail is often overlooked by beginners when trying to enable Wi-Fi through the console.
☑️ Checking the WLAN service
After completing these steps, it is recommended to restart the laptop. HP Check for the wireless network icon in the system tray. If the icon appears but no networks are found, you may need to reset your network settings, which is discussed below.
Managing drivers via Device Console
In more complex cases, when the service is running, but the adapter is listed as a "Disabled Device" in Device Manager, standard methods fail to enable it. This is where the utility comes in handy. Device Console (devcon), which is a console version of the Device Manager. It allows you to manage drivers directly, bypassing the graphical interface.
Utility devcon.exe It is not built into the standard Windows distribution, but it can be found in the Windows Driver Kit (WDK) or copied from another working computer with the same OS version. Place the file devcon.exe to the folder C:\Windows\System32, to be able to run it from any directory.
To find the ID of your wireless adapter, enter the command:
devcon find NET | findstr /i "wireless" "wifi" "802.11"
This command will filter devices associated with networks and display their IDs. Find the line that matches your adapter (e.g. Intel Dual Band Wireless or Realtek RTL), and copy the device ID (for example, PCI\VEN_8086&DEV_...). To enable the device, use the command:
devcon enable "YOUR_DEVICE_ID"
⚠️ Attention: Usage
devconrequires precision. Enabling the wrong device (for example, a touchpad or Bluetooth module instead of Wi-Fi) can lead to unpredictable system behavior. Always check the device ID before entering a command.
If the device was software disabled, this command will instantly return it to the active state. You can also use the command devcon restart to reset the driver without completely rebooting the computer, which often helps to reset the "frozen" state of the adapter.
Where can I get devcon.exe?
The utility is part of the Windows Driver Kit (WDK), which can be downloaded for free from the official Microsoft website. The file can also be found in the C:\Program Files (x86)\Windows Kits\10\Tools\x64 folder (the path may vary depending on the SDK version).
Resetting the network stack and TCP/IP parameters
Sometimes the adapter is enabled and working, but due to accumulated network configuration errors or IP address conflicts, connecting to the internet is impossible. In such cases, a complete network stack reset is an effective solution. This will reset all network settings to factory defaults, removing static IP addresses and DNS servers.
To perform a reset, use a sequence of commands, entered one at a time. Each command should end with a success message:
netsh winsock resetnetsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
Team netsh winsock reset Resets the Winsock directory, which often resolves connection problems caused by malware or network protocol glitches. IP Reset (netsh int ip reset) restores TCP/IP protocol parameters. Commands release And renew update the IP address, and flushdns clears the DNS cache.
After completing all the commands, be sure to restart your laptop. Upon startup, the system will reinitialize the network components, and Wi-Fi will likely work correctly. If the problem persists, check your power settings.
Setting up the adapter's power supply
One of the hidden reasons for Wi-Fi disconnection on laptops HP Windows' aggressive power-saving policy is a problem. The system may automatically disable the wireless module to save battery power, but then fail to re-enable it correctly. This is especially true for older models, such as HP Pavilion g6 or HP Compaq.
To prevent the system from disabling the adapter, you can use the command line to change the registry settings or use powercfgHowever, the most reliable method through the console is to change the settings of a specific device. First, find out the GUID of your adapter:
powercfg /devicequery s1_supported
Then, knowing the exact name of the device (you can find it in Device Manager), you can disable it. But the easiest way to do this is through the registry, using the command regFind the registry key corresponding to your adapter and set the parameter AllowWakeMagic or a similar power management setting in the value 0.
A simpler, but less specific, method is to disable power saving mode for the entire wireless card. Enter the following in the command line:
powercfg /setacvalueindex scheme_current sub_none wirelessadaptersetting 0
powercfg /setactive scheme_current
This command sets the maximum performance mode for wireless adapters when powered by AC power. A similar parameter can be used for battery power by replacing setacvalueindex on setdcvalueindex.
Table of basic commands for diagnostics
For ease of use, below is a table of the basic commands you might need when troubleshooting network issues on HP laptops. Save this information to quickly find the right tool in an emergency.
| Team | Description of action | Necessary rights |
|---|---|---|
net start wlansvc |
Starts the wireless network service | Administrator |
netsh wlan show drivers |
Shows information about the Wi-Fi driver. | Administrator |
ipconfig /all |
Displays the complete network configuration. | User |
devcon enable ID |
Turns on the device by ID | Administrator |
netsh winsock reset |
Resets the Winsock directory settings | Administrator |
Using these commands allows you to perform deep diagnostics and fix most software errors. Remember that command syntax It is case and space sensitive, so please enter it carefully.
Frequently Asked Questions (FAQ)
What should I do if the command prompt says "Access Denied"?
This means you launched the console without administrator rights. Close the window and right-click "Command Prompt" or "PowerShell" in the Start menu, then select "Run as administrator." Without these rights, most network commands will not run.
Is it possible to turn on Wi-Fi on an HP without a keyboard if the keys don't work?
Yes, all the methods described above work exclusively through the software interface and do not require pressing physical buttons or function keys (Fn + F12, etc.). The command line completely bypasses the hardware power buttons.
Why did saved passwords disappear after a network reset?
Team netsh winsock reset Or a full network reset via settings returns the system to its default state, which includes deleting all saved Wi-Fi profiles. You'll need to re-enter passwords the first time you connect to each network.
How do I know if my HP laptop supports 5GHz Wi-Fi via CMD?
Enter the command netsh wlan show driversFind the line "Supported radio module types." If it says 802.11a, 802.11n, or 802.11ac, then 5 GHz is supported. If it only says 802.11b/g, then the adapter only operates in the 2.4 GHz band.
Should I update my BIOS if my Wi-Fi disappeared after a Windows update?
Yes, this is a common cause of conflicts. Newer versions of Windows may require up-to-date BIOS microcode to work correctly. hardwareVisit the HP support site, find your model, and check for BIOS updates.