This question already has an answer here:
I'm using Windows 7 x64 and I need a script to load 2 wifi profiles. I have exportred the XMLs from a current system. I just need a way to deploy the profiles to people who don't know the first thing about Windows.
I would prefer that I could embed the profiles inside the script if possible. These are networks that are not broadcasting their SSIDs.