Disable Windows Wi-Fi Auto-Disconnect on Poor Networks

Using Registry Editor (regedit) – for all Windows Editions

  1. Press Windows + R, type regedit, and press Enter to open the Registry Editor.

  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator. If the NetworkConnectivityStatusIndicator key does not exist, right-click on the Windows key, select New > Key, and name it exactly that.

  3. In the right pane, right-click and select New > DWORD (32-bit) Value.

  4. Create the following two values and set their data to 1:

    • NoActiveProbe

    • DisablePassivePolling

  5. Restart your computer for the changes to take effect.

Disable WLAN AutoConfig

This method uses a command to forcefully stop the auto-configuration feature.

  1. Search for “Command Prompt”, right-click it, and select Run as administrator.

  2. To disable the automatic configuration, run: netsh wlan set autoconfig enable=no interface="Wi-Fi".

  3. To re-enable it later, simply change no to yes in 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.

  1. Edit the hosts file (C:\Windows\System32\drivers\etc\hosts) and add these lines: 127.0.0.1 www.msftconnecttest.com and 127.0.0.1 www.msftncsi.com.

  2. Run a local web server (like XAMPP) that responds to these requests.