Skip to content

Instantly share code, notes, and snippets.

@sahildeshp
Last active March 19, 2025 13:10
Show Gist options
  • Select an option

  • Save sahildeshp/1d32fbdabca0b06da9e8f077a13ab5a4 to your computer and use it in GitHub Desktop.

Select an option

Save sahildeshp/1d32fbdabca0b06da9e8f077a13ab5a4 to your computer and use it in GitHub Desktop.
Multinetwork

To enable or disable simultaneous connections - save as .bat and run as admin

Enable

@echo off
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy" /f /v "fMinimizeConnections" /t REG_DWORD /d "0"
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy" /f /v "fBlockNonDomain" /t REG_DWORD /d "0"

Disable

@echo off
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy" /f /v "fMinimizeConnections" /t REG_DWORD /d "3"
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy" /f /v "fBlockNonDomain" /t REG_DWORD /d "1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment