Windows 7 and the WiFi connection does not connect

Windows 7 and the WiFi connection does not connect

I’ve had Windows 7 beta installed on my Lenovo S10 for a few weeks now and I’ve been constantly plagued by a problem with my wireless connectivity.  I set up my wifi connection to my router, and I selected the checkbox to automatically connect to the network whenever it is in range.  I could connect and disconnect from my wireless network all day long.  The problem would occur when I rebooted or shutdown.  When the machine would come back up, I’d have to manually connect to my wireless network again!  All the settings were there except for that checkbox to automatically connect.  Every reboot would reset that checkbox to be blank.  Which meant that every reboot would force me to manually connect again!

Finally, I think I found the solution.  I searched high and low in the registry and couldn’t find an appropriate registry setting to change that would force this automatic connection.  That meant that Windows must be storing the connection profile in a different place.  After using some file access monitoring tools, I narrowed it down to an xml file.  If you’re having a similar problem, either in Windows 7 or Vista, try the following steps:

1.  Go to the Start menu -> Control Panel -> Administrative Tools.  Double click on the Services icon to open the Services management console.

2.  Scroll to the bottom of the Services console until you see WLAN AutoConfig.  Right click on it and select Stop from the menu.  Wait until the service is stopped.

3.  Now, open Windows Explorer and go to C:ProgramDataMicrosoftWlansvcProfilesInterfaces.  You should see a directory or directories in there with long names like {FBDADD33-7552-4D1E-B3B0-71C6128AFE14}.  If you have multiple directories in here, then you’ll have to hunt for the correct directory.  Follow the next steps for each directory you have until you find the directory you need.

4.  Inside the directory with the long name, there will be an xml file with another long name.  You can double click on the xml file to open it and see it’s contents.  Inside the xml file are the settings for your wireless connection, including the name and various configuration settings.  If you have multiple directories from step 3 above, then you can open each xml file in each directory until you find the one that matches your wireless name.

5.  Once you find your xml file, open it in Notepad.  There will be one setting in that file that reads <connectionMode>manual</connectionMode>.  Change the word “manual” to “auto”, without the quotation marks.  Save the file.  Don’t change the name or the location.

6.  Now that the file is edited, we need to make sure that the SYSTEM account can’t change the auto setting back to manual, which is what was happening to me.  So we need to change permissions on the file to deny SYSTEM and Administrators from being able to write to the file.  Right click on the file you just saved and select Properties.   Click on the Security tab.  Click the Advanced button.  Click on the Owner tab and click on the Edit button.  Select your user account in the list and select Apply.  You now have full ownership of the file.

7.  After taking ownership, go back to the Permissions tab.  Click on the Edit button.  Remove the checkmark from the “Include inheritable permissions from this object’s parent”.  A dialog window will pop up.  In Vista, click on the Copy button.  In Windows 7, click on the Add button.

8.  Now you can edit all the permissions easily.  Highlight the SYSTEM account in the list and click on the Edit button.  Check the box to DENY full control.  All checkmarks underneath Full Control will move from Allow to Deny.  Now, we can’t deny ALL permissions because the system needs to be able to READ the contents of this file, so we need to move some of the checkmarks back over to the Allow column.  Check the box to Allow the following permissions:  Traverse folder / Execute file, List folder / read data, Read attributes, Read extended attributes, and Read permissions.  Pretty much any permission that says “Read” is good to go.  Just deny all the other settings that would allow SYSTEM to write or modify the file.

9.  Do the same things in Step 8 for the Administrators account.  After you’ve changed the permissions for those two accounts, you can apply and OK your way out of all those windows.

10.  Go back to the Services management console and start up the WLAN AutoConfig service again.  Right click on the service and select Start from the menu.

Now, your wireless connection should start up and connect automatically and it should survive a reboot.  My wireless connection is listed as Access Point.  I’m not sure if these settings would work for Adhoc networks or other connection types, but it’s worth a shot.  Any questions, let me know in the comments.

Categories: Windows 7Bookmark

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>