netsh wlan export profile name="wifiname" folder=C:\
This creates an xml file on the C:\
I then created a script to deploy the profile to other Windows 7 machines
netsh wlan add profile filename="C:\wifiname.xml" user=all
If you need to delete any wireless networks use the following command
netsh wlan delete profile name="oldwifi"