Modify List of Preferred Wireless Networks via Script

I'm trying to write a script (batch, vbscript, kixtart, autoit or even an EXE) that can redefine the list of preferred wireless networks on the computer. It needs to remove whatever wireless networks are there, and then add the two that I want to have in there, complete with WEP key.

The closest I found was this:
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/Q_22149527.html

But it still isn't quite right. That just does a sendkeys to the wireless network setup wizard. Can anyone help me out?
LVL 31
Frosty555Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Frosty555Author Commented:
darn that's perfect for Vista, but I'm using XP.
Frosty555Author Commented:
The computers might actually come with some wireless software that has profiles I can use. I'll see if I can do it that way.
Frosty555Author Commented:
Okay, the thinkpad laptops come with software called "Access Connections" which manages the wifi profiles. If I use their software, it comes with the ability to export a profile, and those profiles can be deployed to other computers on the network via a script.

So I guess that's good enough.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.