+ Post New Thread
Page 1 of 3 123 LastLast
Results 1 to 15 of 44
Scripts Thread, script for joining wireless networks in Coding and Web Development; Greetings all, Bit of an odd one this. Is there such a beast as a script that can automatically join ...
  1. #1

    Join Date
    Oct 2008
    Location
    Southampton, England
    Posts
    215
    Thank Post
    40
    Thanked 10 Times in 6 Posts
    Rep Power
    14

    script for joining wireless networks

    Greetings all,

    Bit of an odd one this.

    Is there such a beast as a script that can automatically join a laptop to a wireless network (with wpa2+passkeys) to save me having to do it on all 300 odd of our laptops?

    Many thanks
    James

  2. #2
    dwhyte85's Avatar
    Join Date
    Mar 2009
    Location
    Berkshire
    Posts
    1,235
    Thank Post
    162
    Thanked 153 Times in 138 Posts
    Rep Power
    104
    GPO, not script 'how to':

    Creating Wireless GPO Setting

    Not exactly what you asked, hopefully some help :-)

  3. #3

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,867
    Thank Post
    412
    Thanked 778 Times in 651 Posts
    Rep Power
    182
    Alternatively, if your machines aren't joined to your AD, the Wireless Setup Wizard thing is genius with a USB disk. I even wrote some AutoIT to prompt for the disk, find it on insertion, and click through the confirmations during our deployment process.

    Edit: in fact, in exchange for a Southampton postcard, I'll send you the source.

  4. #4

    Join Date
    Oct 2007
    Location
    Lincolnshire
    Posts
    133
    Thank Post
    0
    Thanked 22 Times in 22 Posts
    Rep Power
    18
    I'm using the free (older) version of this ENGL Zwlancfg™, but it seems to have disappeared from the website. PM me if you want a copy.

  5. #5

    Join Date
    Oct 2008
    Location
    Southampton, England
    Posts
    215
    Thank Post
    40
    Thanked 10 Times in 6 Posts
    Rep Power
    14
    Thanks for the swift replies everyone.

    dwhyte85: I have tried your answer as this seems the most simple to do and its just as i'd hoped to find such a setup. However the problem i have come up against is that it doesnt give you wpa2 options nor does it allow you to input the passkey. Have i missed something? or is this by design?

    powdarrmonkey: I would use this but this is for after i have iamged them during which it autojoins to the domain to save time. Thanks though.

    keithu: Can this be done after the imaging?

    Thanks again guys

    James

  6. #6

    Join Date
    Oct 2007
    Location
    Lincolnshire
    Posts
    133
    Thank Post
    0
    Thanked 22 Times in 22 Posts
    Rep Power
    18
    Quote Originally Posted by jjohnsoncantell View Post
    keithu: Can this be done after the imaging?
    Yes, it's just a command line utility you can run at any time. You can either specify the wpa key etc as parameters or export/import a working config as an xml file.

  7. #7


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,775
    Thank Post
    262
    Thanked 2,963 Times in 2,178 Posts
    Rep Power
    838
    Until our school gets a managed wireless solution, I've been using 'WZC Auto Provision' from Aruba Networks. It works really well and supports everything from WEP to WPA2.

    Examples
    Code:
    WifiCfg_XP.exe -add /SSID:EduGeek /Authentication:Open /Encryption:WEP /NetworkKey:12345678901234567890123456 /KeyIndex:1 /KeyProvidedAutomatically:FALSE
    Code:
    WifiCfg_XP.exe -add /SSID:EduGeek /Authentication:WPA /Encryption:TKIP /KeyProvidedAutomatically:TRUE /IEEE8021xEnabled:TRUE /EAPType:PEAP /InnerAuthentication:MSCHAPv2 /EnableFastReconnect:TRUE

  8. 4 Thanks to Arthur:

    Batman (16th September 2009), mbeardonline (29th March 2013), powdarrmonkey (10th May 2009), tomscaper (10th June 2009)

  9. #8


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,775
    Thank Post
    262
    Thanked 2,963 Times in 2,178 Posts
    Rep Power
    838
    Quote Originally Posted by keithu View Post
    I'm using the free (older) version of this Zwlancfg, but it seems to have disappeared from the website. PM me if you want a copy.
    Zwlancfg looks quite good actually. Thanks to Google I found a copy here, although I'm not sure if it's the last freeware version.
    Last edited by Arthur; 10th May 2009 at 01:07 AM.

  10. #9

    Join Date
    Oct 2008
    Location
    Southampton, England
    Posts
    215
    Thank Post
    40
    Thanked 10 Times in 6 Posts
    Rep Power
    14
    Thanks thats just what i wanted Arthur and it works perfectly, thanks ever so much, and thank you all for answering my question so quickly!

    James

  11. #10


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,775
    Thank Post
    262
    Thanked 2,963 Times in 2,178 Posts
    Rep Power
    838
    Would it be worth updating the EduGeek Wiki with details on Aruba's WiFiCfg or Zwlancfg, since the current method seems overly complicated?

  12. 2 Thanks to Arthur:

    jjohnsoncantell (3rd June 2009), tomscaper (10th June 2009)

  13. #11
    tomscaper's Avatar
    Join Date
    Jul 2006
    Posts
    814
    Thank Post
    118
    Thanked 29 Times in 15 Posts
    Rep Power
    23
    Quote Originally Posted by Arthur View Post
    Until our school gets a managed wireless solution, I've been using 'WZC Auto Provision' from Aruba Networks. It works really well and supports everything from WEP to WPA2.

    Examples
    Code:
    WifiCfg_XP.exe -add /SSID:EduGeek /Authentication:Open /Encryption:WEP /NetworkKey:12345678901234567890123456 /KeyIndex:1 /KeyProvidedAutomatically:FALSE
    Code:
    WifiCfg_XP.exe -add /SSID:EduGeek /Authentication:WPA /Encryption:TKIP /KeyProvidedAutomatically:TRUE /IEEE8021xEnabled:TRUE /EAPType:PEAP /InnerAuthentication:MSCHAPv2 /EnableFastReconnect:TRUE
    Do you happen to know how to add a ssid when the network key has a - sign in it.

  14. #12
    Modey's Avatar
    Join Date
    Oct 2007
    Location
    Northants
    Posts
    140
    Thank Post
    16
    Thanked 31 Times in 26 Posts
    Rep Power
    20
    Quote Originally Posted by Arthur View Post
    Until our school gets a managed wireless solution, I've been using 'WZC Auto Provision' from Aruba Networks. It works really well and supports everything from WEP to WPA2.

    Examples
    Code:
    WifiCfg_XP.exe -add /SSID:EduGeek /Authentication:Open /Encryption:WEP /NetworkKey:12345678901234567890123456 /KeyIndex:1 /KeyProvidedAutomatically:FALSE
    Code:
    WifiCfg_XP.exe -add /SSID:EduGeek /Authentication:WPA /Encryption:TKIP /KeyProvidedAutomatically:TRUE /IEEE8021xEnabled:TRUE /EAPType:PEAP /InnerAuthentication:MSCHAPv2 /EnableFastReconnect:TRUE
    I just had a play around with this the other day and it's been very useful indeed. We had some laptops (eee PC's) that we wanted to use on our domain, but the wireless cards wouldn't pre-authenticate before logon.

    However, if you use the wificfg utility in conjunction with local group policy (using the machine logon script to run the util), the laptops now pre-auth with the wireless!

  15. 2 Thanks to Modey:

    Sam_Brown (11th March 2011), TheScarfedOne (16th July 2009)

  16. #13

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    116
    Do you happen to know how to add a ssid when the network key has a - sign in it
    Might not help, but see if the attached version works (in a limited test). That is the current Dec 2008 version, that I modified so it would work when there's a space character in the key. It's also a good idea to put quotes around the command line option like this: "/NetworkKey:Top Secret"

    [If it does work now, please let me/us know]
    Attached Files Attached Files

  17. 4 Thanks to PiqueABoo:

    Cowardlyduck (10th September 2009), eean (5th July 2009), projector1 (12th August 2010), TheScarfedOne (16th July 2009)

  18. #14

    Join Date
    Jun 2006
    Location
    Wigan
    Posts
    27
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    18
    Hi Guys,

    I have got the autoit script working that sets the wifi settings.

    I have put it in as a startup script using a gpo, is there anyway either using the gpo itself or by amending the script so that it only runs once then doesnt run again after the settings have been applied?

    Thanks Guys

    Phil

  19. Thanks to phillipmillward from:

    TheScarfedOne (16th July 2009)

  20. #15

    Join Date
    Jun 2009
    Location
    Blackburn
    Posts
    101
    Thank Post
    7
    Thanked 2 Times in 2 Posts
    Rep Power
    12
    Hey People i dont know how to or where to apply this code please can i have some information of where i need to add this code. i know am i bit stupid but please can some on help me!!



SHARE:
+ Post New Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Script to change the wireless or LAN connection
    By featured_spectre in forum Scripts
    Replies: 0
    Last Post: 13th November 2008, 05:49 PM
  2. Cannot see wireless networks
    By Ric_ in forum Windows
    Replies: 5
    Last Post: 21st May 2008, 06:14 PM
  3. Wireless networks speeds i did not know this...?
    By Uraken in forum Wireless Networks
    Replies: 3
    Last Post: 26th February 2008, 08:43 PM
  4. 2 wireless networks and wired network
    By in forum Network and Classroom Management
    Replies: 9
    Last Post: 23rd November 2007, 02:12 PM
  5. Wireless networks and large groups of laptops
    By maniac in forum Wireless Networks
    Replies: 33
    Last Post: 8th February 2007, 11:52 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •