MSFN Forum: unattended wifi settings - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

unattended wifi settings how do you setup the wifi unattended in windows 7?

#1 User is offline   daniel_allsaints 

  • Group: Members
  • Posts: 2
  • Joined: 09-September 09

Posted 10 November 2009 - 01:07 AM

hello everyone,

I have created a windows 7 unattended and all is working well, this website has been a great help in doing so. I have hit a snag though in trying to automatically setup the wireless settings in windows 7. I have looked and just can’t seem to find any information to automate it.
What I want is a script similar to what zwlancfg( http://www.engl.co.u...ncfg/index.html ) does, which I used in XP, but they have since removed this from freeware.
Or is it possible to do it in the unattend.xml?
Any help would be greatly appreciated :)


#2 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,748
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 November 2009 - 07:03 AM

If the version you have still works then you can probably run it in a runsynchronous cmd during oobeSystem or in setupcomplete.cmd. Don't see too many settings for that in xml but I haven't ever set one up either

EDIT: Most those settings are placed in the registry so export a file and import it be best shot and easy,
Grab the Installwatchpro here and track the changes made and export the reg.

This post has been edited by maxXPsoft: 10 November 2009 - 07:10 AM


#3 User is offline   daniel_allsaints 

  • Group: Members
  • Posts: 2
  • Joined: 09-September 09

Posted 10 November 2009 - 11:26 PM

I have discovered a solution and figured I may as well post it for others.

I had a friend email me a newer version of the freeware zwlancfg, version 2.1

It works in windows 7, but you need to use the import and export profile feature if you want the wireless profile to have auto conenction working.
I also had to run the exe in compatability mode for vista, but it still seems to work fine.

Attached the program

Attached File(s)



#4 User is offline   Daedlus 

  • Newbie
  • Group: Members
  • Posts: 35
  • Joined: 13-April 05

Posted 28 November 2009 - 07:46 PM

This worked for me.

http://www.msfn.org/board/unattended-wirel...pid-895875.html

#5 User is offline   Darr247 

  • Group: Members
  • Posts: 4
  • Joined: 21-January 11
  • OS:none specified
  • Country: Country Flag

Posted 28 April 2012 - 09:23 AM

So, how do we convert the old links like
http://www.msfn.org/board/unattended-wireless-network-connection-t88734-pid-895875.html

to the format the board uses now?

#6 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,863
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 28 April 2012 - 11:36 PM

Try:

http://www.msfn.org/board/index.php?act=findpost&pid=895875

to the post itself or:

http://www.msfn.org/board/index.php?showtopic=88734

to the whole thread.

They just work.

#7 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,693
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 April 2012 - 03:44 PM

Sourced from elsewhere though works well in W7 x86 & 64 bit.

1. Get a computer that has the wireless lan configurations
2. run this command (may need to be admin): netsh wlan export profile folder="PATH_TO_FOLDER" name=PROFILENAME
3. That created an XML file
4. Create a batch file
5. type this into the batch file: netsh wlan add profile filename="\XMLFILE.XML" user=all
6. Edit the XML file: Where it says <protected> </protected> change it to say <protected>false</protected> and put the key between the <keyMaterial>ENTER YOUR KEY HERE</keyMaterial>
7. Make sure you put into the post installation command to run the batch file that you created (i.e. c:\wirelesslan\RUNME.BAT)


Hope this helps?

#8 User is offline   The Glimmerman 

  • Member
  • PipPip
  • Group: Members
  • Posts: 138
  • Joined: 03-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 01 May 2012 - 06:21 AM

Some additions
Get your wifi and IP Settings.
** Not needed when using DHCP **

Use
netsh wlan show profiles
to show all profiles

If you want to see the details of your profiles, use this command:
netsh wlan show all

export profile
netsh wlan export profile folder="PATH_TO_FOLDER" name=PROFILENAME

Import profile
netsh wlan add profile filename="PATH_AND_FILENAME.xml" Interface="Wireless Network Connection"

export all profiles
netsh wlan export profile folder="%USERPROFILE%\Desktop" key=clear
The key=clear is to get a readable WiFi password

Use
netsh -c interface dump > c:\ip-settings.txt
to save your ip settings. IP gateway DNS etc etc

Then in a script

@ECHO OFF
netsh wlan add profile filename="WiFi-ABC.xml" Interface="Wireless Network Connection"
netsh wlan add profile filename="WiFi-XYZ.xml" Interface="Wireless Network Connection"
netsh wlan add profile filename="WiFi-SOMEONE.xml" Interface="Wireless Network Connection"
netsh wlan add profile filename="WiFi-ERROR-404.xml" Interface="Wireless Network Connection"
netsh exec "ip-settings.txt"



netsh IP Settings

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy