Adding/Removing Wireless Profiles

email me

This is how you would add a new wireless profile, and then delete the old one.

Note, the NewWireless.txt contains the exported wireless settings from a reference machine

netsh wlan add profile filename=NewWireless.txt user=all
netsh wlan delete profile MyOldWirelessSSID

Create wireless profile in XML
Import XML at the command line

 

Reference

https://msdn.microsoft.com/en-us/library/windows/desktop/ms707381(v=vs.85).aspx

 

Notes

If you’re going to export the XML, you will have to clear the key. To do this, run

netsh wlan export profile PROFILENAME folder=DIRECTORY key=clear

* submitted by Jose Espitia