Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


unattended wifi settings

  • Please log in to reply
7 replies to this topic


  • Member
  • 2 posts
  • Joined 09-September 09
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 :)

How to remove advertisement from MSFN



    MSFN Master

  • Developer
  • 2,879 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
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.

Edited by maxXPsoft, 10 November 2009 - 07:10 AM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1


  • Member
  • 2 posts
  • Joined 09-September 09
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 Files




  • Member
  • 35 posts
  • Joined 13-April 05
This worked for me.



  • Member
  • 4 posts
  • Joined 21-January 11
  • OS:none specified
  • Country: Country Flag
So, how do we convert the old links like
to the format the board uses now?



    Iuvat plus qui nihil obstat

  • Supervisor
  • 6,014 posts
  • Joined 07-April 07
  • OS:98SE
  • Country: Country Flag



to the post itself or:

to the whole thread.

They just work.



    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,798 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
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?

The Glimmerman

The Glimmerman


  • Member
  • PipPip
  • 144 posts
  • Joined 03-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Some additions
Get your wifi and IP Settings.
** Not needed when using DHCP **

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

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

Then in a script

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
  • PinkFreud likes this
Help us help you, by helping yourself. Or, in other words, RTFM.
And never say you don't have time. If you have time to ask and wait, then you have time to read.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users