Jump to content

Batchfile to connect to an AP?


Recommended Posts

Posted

As part of my rampant paranoia regarding my own wireless network, I've taken to changing the wpa psk every few weeks. This is fine for myself but for the lusers i have to share the network with, its a problem. Is there anyway I can create a batch file which runs from a flash stick, that would update windows with the new key for the network? This would let me cut down the time it takes to remove the old AP reference, and create a new one, copy&pasting the code in.

Posted

My first question in to workoing out how to do this would be: Where and how does windows store the key?

I would then change the key where it is stored manually (with out using the wireless connection thing) and change the key on the AP so in theory it should still beable to connect.

If this test was successful, it should be a piece of piss to setup a globally accessible network share that has a batch file in it that is updated every week and is run every week.

Posted

First if it's a windows(XP+) only network windows has a way to do this for you I don't know if it will remove the old entry but it will add new ones. Second what other measures are you using?

Posted

Windows XP doesn't have a command line way of changing wireless settings.

Windows Vista does with a new version of netsh.

Windows XP if it's on a Domain will not allow you to change the settings via Wireless Networking Wizard. On a workgroup it will.

There's profiles with certain manufacturers, but I'm not sure if it's anything remotely to being helpful.

Posted

I bet it's stored in plain text some where, but I have exacly zero wireless devices and cannot even begin to test or dig around for any of this.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...