I am working on a unattended install for Windows 7 64 bit. I successfully installed Windows 7, grab the computer name then rename the computer, add it to the domain, and turn off the User Access Control. I am now working on network settings and some advanced network settings. I need to do the following:

1) Select the "Use the following DNS server addresses" button
2) Add a perferred DNS server and alternate DNS server
3) Append a DNS suffix with scc.county.zone
4) Add a DNS suffix for this connection (scc.county.zone)
5) Add two IP addresses in the WINS tab

Does anyone have a sample xml file or know how to do the above?

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


I never received a response on this post, and I was unable to figure out how to do this in the unattend.xml file. I wrote a script instead. If anyone is interested, here is what I came up with. I have no training in VB scripts, but it works.

Dim strWINSPrimaryServer, strWINSSecondaryServer
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colNetAdapters = objWMIService.ExecQuery _
("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration")
strDNSServers = Array("","")
strDNSSuffixes = "yournetwork"
strWINSPrimaryServer = ""
strWINSSecondaryServer = ""
arrDNSSuffixes = Array("yournetwork")
For Each objNetAdapter in colNetAdapters
objNetAdapter.SetWINSServer strWINSPrimaryServer, strWINSSecondaryServer

' DNS suffix for this connection
intSetDomain = objNetAdapter.SetDNSDomain("yournetwork")

' Register this connections address in DNS, Use this connections DNS suffix in DNS registration
intDynReg = objNetAdapter.SetDynamicDNSRegistration (True, False)
Answered 04/13/2011 by: kwoodfin
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity