Sunday, January 19, 2014

Changing Windows Wifi key for the multiple machines in Network

In one of the places I have been working, the IT team was using the Network Wifi WPA Key for a couple of years. The biggest problem was that there were perhaps hundreds of devices connected on Wifi but no central way of managing these centrally. At the end they decided to bite the bullet and changed the keys.

Now as people started coming to office, the IT department was supposed to set the key instead of giving it away. In Windows 8, MS has removed the feature if "Managing Wireless networks". So to give a new Key, it would take some time.

To make things simple, we found out a very elegant solution which works for Windows 7 and 8.

Step 1: Set one Laptop with the Wifi key manualy
Step 2: Export the Key
netsh wlan export profile key=clear

Step 3: Write a simple batch file that would delete the old profile and set the new one.
upgrade.bat
netsh wlan delete profile name=[profile-name]
netsh wlan add profile filename="WiFi-[profile-name].xml"
netsh wlan connect [profilename]

Copy the profile-file and the batch file into a USB key and simply run it on every machine.

I am sure this could be extended to OSX and Linux but will update you if I find out.

No comments:

Post a Comment