Disable Windows Wi-Fi Auto-Disconnect on Poor Networks
Using Registry Editor (regedit) – for all Windows Editions
-
Press
Windows + R, typeregedit, and press Enter to open the Registry Editor. -
Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator. If theNetworkConnectivityStatusIndicatorkey does not exist, right-click on theWindowskey, selectNew > Key, and name it exactly that. -
In the right pane, right-click and select
New > DWORD (32-bit) Value. -
Create the following two values and set their data to
1:-
NoActiveProbe -
DisablePassivePolling
-
-
Restart your computer for the changes to take effect.
Disable WLAN AutoConfig
This method uses a command to forcefully stop the auto-configuration feature.
-
Search for “Command Prompt”, right-click it, and select Run as administrator.
-
To disable the automatic configuration, run:
netsh wlan set autoconfig enable=no interface="Wi-Fi". -
To re-enable it later, simply change
notoyesin the same command.
Modify the hosts File
This method is complex and not recommended for the average user as it involves running a local web server to “trick” Windows into thinking the NCSI tests are passing.
-
Edit the hosts file (C:\Windows\System32\drivers\etc\hosts) and add these lines:
127.0.0.1 www.msftconnecttest.comand127.0.0.1 www.msftncsi.com. -
Run a local web server (like XAMPP) that responds to these requests.