Skip to content

Instantly share code, notes, and snippets.

@Thelta
Last active June 15, 2018 08:03
Show Gist options
  • Select an option

  • Save Thelta/afc4767e93be3f8084f2200780e9a0ba to your computer and use it in GitHub Desktop.

Select an option

Save Thelta/afc4767e93be3f8084f2200780e9a0ba to your computer and use it in GitHub Desktop.
windows_wlan_autoconfig_switcher
cd "%~dp0"
Powershell.exe -executionpolicy remotesigned -File ./wlan_autoconfig_switch.ps1
$enabled = " Wireless LAN settings --------------------- Auto configuration logic is enabled on interface `"Wi-Fi`" "
$test = & netsh wlan show autoconfig
If ($enabled -eq $test)
{
netsh wlan set autoconfig enabled=no interface="Wi-Fi"
}
Else
{
netsh wlan set autoconfig enabled=yes interface="Wi-Fi"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment