Connect to Wi-Fi ad-hoc networks automatically with Windows Vista

Posted on June 26, 2008 at 5:32 am

I recently moved to a new apartment, and lost my small network switch I used for connecting my two laptops and my EEE PC together. All of these devices have a WiFi adapter so I figured I would just set up an Ad-Hoc WiFi network instead of using cables.

This would also mean I could share the Internet connection from my main work laptop and allow me to sit outside in the garden with my sub-notebook and work in the fresh air.

I hit one very annoying fact very early on in this. Namely that Windows Vista does not allow automatic connection to an Ad-Hoc WiFi network, it is seen as a security risk, this meant that every time I started one of the Vista machines I had to manually connect to the network, very annoying at times if I forgot about it. So I decided to solve this problem and I found a way using the Windows Task Scheduler.

Task Scheduler

I first created the Ad-Hoc WiFi network and connected too it, I saved the network setting as a WiFi profile and gave it the name “Decurro”, if you try this yourself you need to remember the name you give the network profile for a later step. I then used the “Create Basic Task” option in Task Scheduler.

Follow the wizard, give the task a name and then choose the “When I log on” option from the “Task Trigger” window. In the next window select “Start a program” and entered the details in the following screenshot, remember to substitute “Decurro” for your own network name. Then complete the wizard.

Run Program

And that is pretty much it, next time you log in to your PC, your Ad-Hoc connection will be connected. I did have one slight problem with a driver not being loaded quickly enough after a reboot and the connection failing, so I added a delay to the task.

To allow for your system to settle down after a login, before opening the network connection, you will need to go back into the Task Scheduler and edit the task you created, choose the “Triggers” tab and click edit, you will be presented with a window that looks like the one below.

Delay Start

Put a tick in the “Delay task for” box and set the delay to 1 minute, this solved the problem I had with my laptop not being in a state to open the network connection right after login, some people might need to do this, others may not. So there you have it, a quick work around to a ridiculous security limitation of Vista.

» Filed Under Computer Tips, Windows Vista

Related Posts

Comments

7 Responses to “Connect to Wi-Fi ad-hoc networks automatically with Windows Vista”

  1. abhishek said on :

    great tips…never know about this…thanks for sharing.


  2. randomemail999 said on :

    Thanks so much for this. I have been looking for way to long for this


  3. Dave said on :

    Works like a charm, thank you for the help.


  4. Dino said on :

    Thanks a lot…was looking for a way to auto connect to my new wireless printer using windows vista on my laptop. This solved my problem.


  5. Laurel said on :

    Very helpful! Thanks for it very much!:)


  6. MARCOS said on :

    handy !!! thanks


  7. Mike said on :

    This doesnt work anymore with Windows 7

    unfortunately, because it also means i cannot login to my server/domaincontroller via my phone :P


Please post your comments/suggestions!