Some additions
Get your wifi and IP Settings.
** Not needed when using DHCP **
Use
netsh wlan show profiles
to show all profiles
If you want to see the details of your profiles, use this command:
netsh wlan show all
export profile
netsh wlan export profile folder="PATH_TO_FOLDER" name=PROFILENAME
Import profile
netsh wlan add profile filename="PATH_AND_FILENAME.xml" Interface="Wireless Network Connection"
export all profiles
netsh wlan export profile folder="%USERPROFILE%\Desktop" key=clear
The key=clear is to get a readable WiFi password
Use
netsh -c interface dump > c:\ip-settings.txt
to save your ip settings. IP gateway DNS etc etc
Then in a script
@ECHO OFF
netsh wlan add profile filename="WiFi-ABC.xml" Interface="Wireless Network Connection"
netsh wlan add profile filename="WiFi-XYZ.xml" Interface="Wireless Network Connection"
netsh wlan add profile filename="WiFi-SOMEONE.xml" Interface="Wireless Network Connection"
netsh wlan add profile filename="WiFi-ERROR-404.xml" Interface="Wireless Network Connection"
netsh exec "ip-settings.txt"
netsh IP Settings