Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thaddeusc1/5b0f7fa157f8d4f9c91d6792123a5619 to your computer and use it in GitHub Desktop.
Save thaddeusc1/5b0f7fa157f8d4f9c91d6792123a5619 to your computer and use it in GitHub Desktop.
Configure Windows to automatically connect to multiple networks

Configure Windows to automatically connect to multiple networks

The registry settings in this gist can be used to configure Windows to automatically connect to Ethernet networks and approved Wi-Fi networks.

Details

In Windows 10—version 1809, build 17763.404 and later—the Windows Connection Manager (WCM) policy "Minimize the number of simultaneous connections to the Internet or a Windows Domain"—a.k.a. fMinimizeConnections—controls automatic network connection and routing when multiple networks are detected.

WCM and custom network routing

Network equipment manufacturers (e.g., Intel's Killer Networking group) and system integrators (e.g., Omen by HP) have started offering tools for managing routing over multiple network connections—e.g.,

These routing features are most useful when WCM automatically connects to both a wired and wireless network, but many times fMinimizeConnections is either:

  • not configured—i.e., a value for fMinimizeConnections is not present; or
  • the policy may be configured to minimize the number of network connections.

In both these situations, WCM will not automatically connect to both Ethernet and Wi-Fi networks—and prevents advanced routing features from just working.

Configuration options

fMinimizeConnections behavior

Value Policy
0 Allow simultaneous connections
1 Minimize simultaneous connections
2 Stay connected to cellular
3 Prevent Wi-Fi when connected to Ethernet
:: Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
:: THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy" /v fMinimizeConnections /d 0 /t REG_DWORD
; Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
;
; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy]
"fMinimizeConnections"=dword:00000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment