Last active
June 15, 2018 08:03
-
-
Save Thelta/afc4767e93be3f8084f2200780e9a0ba to your computer and use it in GitHub Desktop.
windows_wlan_autoconfig_switcher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd "%~dp0" | |
| Powershell.exe -executionpolicy remotesigned -File ./wlan_autoconfig_switch.ps1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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