In Windows Vista and Server 2008, you can use the Netsh WLAN Commands, from the Command Prompt, to import and export the profiles for wireless networks. This is useful if you want to backup the authentication and encryption settings for quicker restoration after system crashes or overhauls. Moreover, you can quickly import the profile(s) onto new systems you acquire, rather than manually creating the profiles on each machine.
To view the profile names:
netsh wlan show profiles
Syntax to export a profile:
netsh wlan export profile folder="PATH TO FOLDER" name=PROFILENAME
Syntax to import a profile:
netsh wlan add profile filename="PATH TO FOLDER\FILENAME.xml"