After searching high and low for something to add a preferred wireless network, along with the WPA key, to multiple XP laptops I found the one on the link below by SirBounty:
Only problem is that it doesn't seem to add the network in the script, or one that I edit in, to my list of preferred networks.
I'm looking for a solution to getting a new network along with the WPA key onto about 500 laptops which are scattered around the British Isles.
Am I doing something wrong !? The script runs, opens the wireless config wizard and then it just sits there as if waiting for me to enter details. The first time I ran it it stayed on the screen for 5 seconds and disappeared.
Cheers any help appreciated.
SSID="MyTestWIC" 'Adjust to read the SSID
Key="abcdefghijklm" 'Adjust to read the key
Dim objShell:Set objShell=CreateObject("Wscript.Shell")
.Run "control netsetup.cpl"
.AppActivate "Wireless Network Setup Wizard"
.SendKeys "%NSN" & SSID & "%MN"
.SendKeys "%W" & Key
.SendKeys "%O" & Key