netsh wlan show profiles
netsh wlan export profile WiFiNetworkName key=clear folder=.
netsh wlan add profile filename="%WINDIR%\Setup\WiFiNetworkName.xml" user=all
netsh wlan connect SSID=SSIDName name=WiFiProfileName
netsh wlan set profileparameter name=WiFiProfileName connectionmode=auto
netsh wlan show profiles
netsh wlan add profile filename="%WINDIR%"\Setup\WiFiNetworkName.xml user=all > C:\log1.txt
netsh wlan set profileparameter name=WiFiProfileName connectionmode=auto > C:\log2.txt
Just tried this. For log1, I'm getting "There is no such wireless interface on the system". For log2, I'm getting "Profile "SC" is not found on any interface." What is strange is that some times on a fresh install with this USB, runningYou can redirect output to log file by adding " > C:\path\log.txt" to your netsh parameters. This might reveal some useful details.
Code:netsh wlan add profile filename="%WINDIR%"\Setup\WiFiNetworkName.xml user=all > C:\log1.txt netsh wlan set profileparameter name=WiFiProfileName connectionmode=auto > C:\log2.txt
netsh wlan show profiles
ipconfig /all