Jump to content

Recommended Posts

Posted

Hey guys. I have been searching all day for this and have came up short many times and figured I would ask you all for some help. What I'm trying to do is have a unattend.xml set a static IP, DNS, and display resolution. Below is what I have in my unattend.xml thus far. I have removed the DNS portion because I keep getting a windows error stating it can not continue installation. I'm still getting the error with the file below but I think it may have something to do with the identifier.

I would like to be able to use this for Audit mode for factory testing... and then use it for OOBE so that I can prepare the system for deployment. Of course I would still need the static ips.

Any help would be greatly appreciated. Thanks again!

<?xml version="1.0" encoding="utf-8"?>

<unattend xmlns="urn:schemas-microsoft-com:unattend">

<settings pass="windowsPE">

<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<SetupUILanguage>

<UILanguage>en-US</UILanguage>

</SetupUILanguage>

<InputLocale>0409:00000409</InputLocale>

<SystemLocale>en-US</SystemLocale>

<UILanguage>en-US</UILanguage>

<UILanguageFallback>en-US</UILanguageFallback>

<UserLocale>en-US</UserLocale>

</component>

</settings>

<settings pass="specialize">

<component name="Microsoft-Windows-TCPIP" language="neutral"

processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"

versionScope="nonSxS"

xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Interfaces>

<Interface>

<Identifier>Local Area Connection</Identifier>

<Ipv4Settings>

<DhcpEnabled>false</DhcpEnabled>

</Ipv4Settings>

<UnicastIpAddresses>

<IpAddress wcm:keyValue="1">192.168.1.5/24</IpAddress>

</UnicastIpAddresses>

<Routes>

<Route wcm:action="add">

<Identifier>0</Identifier>

<Prefix>0.0.0.0/0</Prefix>

<NextHopAddress>192.168.1.3</NextHopAddress>

<Metric>20</Metric>

</Route>

</Routes>

</Interface>

</Interfaces>

</component>

</settings>

</unattend>


Posted

The following sections should help, while we use them for Windiows Server 2008 unattended builds, they should work for Vista as well. These are also for x64 builds, if you need it for x86 then change the setting for processorArchitecture="amd64" to processorArchitecture="x86".

The following sections cover setting a Static IP v4 address, DNS and WINS entries.

The line <Identifier>xx:xx:xx:xx:xx:xx</Identifier> is the MAC address of your NIC.

The settings for <UnicastIpAddresses> must be in CIDR notation

The settings for <NextHopAddress>xxx.xxx.xxx.xxx</NextHopAddress> is the Default Gateway

The Microsoft-Windows-DNS-Client component adds DNS Server entries

The Microsoft-Windows-NetBT component adds WINS entries

There is no way in the unattend file to disable IP v6. however there are settings to configure IP v6 settings, we just don't use IP v6 so we disable it after setup is complete.

<component name="Microsoft-Windows-TCPIP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Interfaces>

<Interface wcm:action="add">

<Identifier>xx:xx:xx:xx:xx:xx</Identifier>

<Ipv4Settings>

<DhcpEnabled>false</DhcpEnabled>

<Metric>10</Metric>

<RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>

</Ipv4Settings>

<UnicastIpAddresses>

<IpAddress wcm:action="add" wcm:keyValue="1">xxx.xxx.xxx.xxx/xx</IpAddress>

</UnicastIpAddresses>

<Routes>

<Route wcm:action="add">

<Identifier>1</Identifier>

<Metric>10</Metric>

<NextHopAddress>xxx.xxx.xxx.xxx</NextHopAddress>

<Prefix>0.0.0.0/0</Prefix>

</Route>

</Routes>

</Interface>

</Interfaces>

</component>

<component name="Microsoft-Windows-DNS-Client" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Interfaces>

<Interface wcm:action="add">

<DNSServerSearchOrder>

<IpAddress wcm:action="add" wcm:keyValue="1">xxx.xxx.xxx.xxx</IpAddress>

<IpAddress wcm:action="add" wcm:keyValue="2">xxx.xxx.xxx.xxx</IpAddress>

</DNSServerSearchOrder>

<Identifier>xx:xx:xx:xx:xx:xx</Identifier>

<EnableAdapterDomainNameRegistration>false</EnableAdapterDomainNameRegistration>

<DisableDynamicUpdate>true</DisableDynamicUpdate>

<DNSDomain>mydomain.com</DNSDomain>

</Interface>

</Interfaces>

<DNSDomain>mydomain.com</DNSDomain>

<UseDomainNameDevolution>true</UseDomainNameDevolution>

</component>

<component name="Microsoft-Windows-NetBT" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Interfaces>

<Interface wcm:action="add">

<NameServerList>

<IpAddress wcm:action="add" wcm:keyValue="1">xxx.xxx.xxx.xxx</IpAddress>

<IpAddress wcm:action="add" wcm:keyValue="2">xxx.xxx.xxx.xxx</IpAddress>

</NameServerList>

<Identifier>xx:xx:xx:xx:xx:xx</Identifier>

<NetbiosOptions>1</NetbiosOptions>

</Interface>

</Interfaces>

</component>

Hope this helps.

Posted
The following sections should help, while we use them for Windiows Server 2008 unattended builds, they should work for Vista as well. These are also for x64 builds, if you need it for x86 then change the setting for processorArchitecture="amd64" to processorArchitecture="x86".

The following sections cover setting a Static IP v4 address, DNS and WINS entries.

The line <Identifier>xx:xx:xx:xx:xx:xx</Identifier> is the MAC address of your NIC.

The settings for <UnicastIpAddresses> must be in CIDR notation

The settings for <NextHopAddress>xxx.xxx.xxx.xxx</NextHopAddress> is the Default Gateway

The Microsoft-Windows-DNS-Client component adds DNS Server entries

The Microsoft-Windows-NetBT component adds WINS entries

There is no way in the unattend file to disable IP v6. however there are settings to configure IP v6 settings, we just don't use IP v6 so we disable it after setup is complete.

<component name="Microsoft-Windows-TCPIP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Interfaces>

<Interface wcm:action="add">

<Identifier>xx:xx:xx:xx:xx:xx</Identifier>

<Ipv4Settings>

<DhcpEnabled>false</DhcpEnabled>

<Metric>10</Metric>

<RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>

</Ipv4Settings>

<UnicastIpAddresses>

<IpAddress wcm:action="add" wcm:keyValue="1">xxx.xxx.xxx.xxx/xx</IpAddress>

</UnicastIpAddresses>

<Routes>

<Route wcm:action="add">

<Identifier>1</Identifier>

<Metric>10</Metric>

<NextHopAddress>xxx.xxx.xxx.xxx</NextHopAddress>

<Prefix>0.0.0.0/0</Prefix>

</Route>

</Routes>

</Interface>

</Interfaces>

</component>

<component name="Microsoft-Windows-DNS-Client" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Interfaces>

<Interface wcm:action="add">

<DNSServerSearchOrder>

<IpAddress wcm:action="add" wcm:keyValue="1">xxx.xxx.xxx.xxx</IpAddress>

<IpAddress wcm:action="add" wcm:keyValue="2">xxx.xxx.xxx.xxx</IpAddress>

</DNSServerSearchOrder>

<Identifier>xx:xx:xx:xx:xx:xx</Identifier>

<EnableAdapterDomainNameRegistration>false</EnableAdapterDomainNameRegistration>

<DisableDynamicUpdate>true</DisableDynamicUpdate>

<DNSDomain>mydomain.com</DNSDomain>

</Interface>

</Interfaces>

<DNSDomain>mydomain.com</DNSDomain>

<UseDomainNameDevolution>true</UseDomainNameDevolution>

</component>

<component name="Microsoft-Windows-NetBT" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Interfaces>

<Interface wcm:action="add">

<NameServerList>

<IpAddress wcm:action="add" wcm:keyValue="1">xxx.xxx.xxx.xxx</IpAddress>

<IpAddress wcm:action="add" wcm:keyValue="2">xxx.xxx.xxx.xxx</IpAddress>

</NameServerList>

<Identifier>xx:xx:xx:xx:xx:xx</Identifier>

<NetbiosOptions>1</NetbiosOptions>

</Interface>

</Interfaces>

</component>

Hope this helps.

Thanks. I will give this a try. What about if I want to do this on multiple systems thus multiple MAC addresses. What would I use for the Identifier? Thanks again.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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