This can't be this difficult... I want to set static IP address info for a Vista unattended install. Looking through WSIM, I can't find just a single place for this. It looks like it is spread out in a couple of places like Microsoft-Windows-TCPIP_6.0.6000..._neutral, and Microsoft-Windows-DNS-Client... TechNet and the WSIM help were no help.... all the IPv4 examples use "DHCP Enabled".
What I would like to add is:
IP address
Subnet Mask
Default Gateway
DNS Servers
The DNS Server section I think I found (but for only one server IP), but what about the IP address info? Below is what I think it would be for the IP address, but then where do you put the subnet mask and default gateway? Thanks for any help with this.
<component name="Microsoft-Windows-TCPIP" 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">
<Interfaces>
<Interface wcm:action="add">
<Ipv4Settings>
<DhcpEnabled>false</DhcpEnabled>
</Ipv4Settings>
<UnicastIpAddresses>
<IpAddress wcm:action="add" wcm:keyValue="1">10.90.10.35</IpAddress>
</UnicastIpAddresses>
<Identifier>Local Area Connection</Identifier>
</Interface>
</Interfaces>
</component>
Page 1 of 1
Static IP Address in Autounattend.xml?
#2
Posted 15 March 2007 - 10:16 AM
specialize pass will get you the most
Quote
<component name="Microsoft-Windows-DNS-Client" 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">
<Interfaces>
<Interface wcm:action="add">
<DNSServerSearchOrder>
<IpAddress wcm:action="add" wcm:keyValue="1">xxx.xx.xxx.xxx</IpAddress>
<IpAddress wcm:action="add" wcm:keyValue="2">xxx.xx.xxx.xxx</IpAddress>
</DNSServerSearchOrder>
<DNSDomain>xxx.xxx.1.1</DNSDomain>
<Identifier>Local Area Connection</Identifier>
</Interface>
</Interfaces>
<Interfaces>
<Interface wcm:action="add">
<DNSServerSearchOrder>
<IpAddress wcm:action="add" wcm:keyValue="1">xxx.xx.xxx.xxx</IpAddress>
<IpAddress wcm:action="add" wcm:keyValue="2">xxx.xx.xxx.xxx</IpAddress>
</DNSServerSearchOrder>
<DNSDomain>xxx.xxx.1.1</DNSDomain>
<Identifier>Local Area Connection</Identifier>
</Interface>
</Interfaces>
This post has been edited by maxXPsoft: 15 March 2007 - 05:19 PM
#3
Posted 15 March 2007 - 07:14 PM
Thank-you. That should add a 2nd DNS server. Do you know about the subnet mask and default gateway by any chance?
#4
Posted 15 March 2007 - 07:23 PM
Duh... add 2 more IP addresses to "Microsoft-Windows-TCPIP". One for the subnet mask and one for the gateway.
I'll try it out and see if it works...
I'll try it out and see if it works...
#5
Posted 15 March 2007 - 08:10 PM
Well, that didn't work after all - The IP address info that is. The 2 DNS servers worked great, but the IP address info just added the IP address and a subnet mask of 255.0.0.0 and no default gateway.
Any ideas, anyone? (I'm having a conversation with myself here
----------------------------------------------------
component name="Microsoft-Windows-TCPIP" 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">
- <Interfaces>
- <Interface wcm:action="add">
- <Ipv4Settings>
<DhcpEnabled>false</DhcpEnabled>
</Ipv4Settings>
- <UnicastIpAddresses>
<IpAddress wcm:action="add" wcm:keyValue="1">10.90.10.35</IpAddress>
<IpAddress wcm:action="add" wcm:keyValue="2">255.255.255.0</IpAddress>
<IpAddress wcm:action="add" wcm:keyValue="3">10.90.10.1</IpAddress>
</UnicastIpAddresses>
<Identifier>Local Area Connection</Identifier>
</Interface>
</Interfaces>
</component>
Any ideas, anyone? (I'm having a conversation with myself here
----------------------------------------------------
component name="Microsoft-Windows-TCPIP" 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">
- <Interfaces>
- <Interface wcm:action="add">
- <Ipv4Settings>
<DhcpEnabled>false</DhcpEnabled>
</Ipv4Settings>
- <UnicastIpAddresses>
<IpAddress wcm:action="add" wcm:keyValue="1">10.90.10.35</IpAddress>
<IpAddress wcm:action="add" wcm:keyValue="2">255.255.255.0</IpAddress>
<IpAddress wcm:action="add" wcm:keyValue="3">10.90.10.1</IpAddress>
</UnicastIpAddresses>
<Identifier>Local Area Connection</Identifier>
</Interface>
</Interfaces>
</component>
#6
Posted 17 March 2007 - 04:51 AM
Well, I finally found out how to do this. In typical MS fashion, it is obscure as well as undocumented.
The subnet mask is indicated by a slash IP address, and the default gateway is defined in the Route section.
/24 would equal 255.255.255.0. /16 would equal 255.255.0.0 and so on. Similar to what you would see in a router configuration. I don't think you need the metric parameter in the Route section, but it doesn't hurt if you do have it.
Note: both the IP address and DNS server info is added in pass 4 - Specialize.
In the configuration below, the IP address info you would end up with would be:
IP address - 10.90.10.36
Subnet Mask - 255.255.255.0
Default Gateway - 10.90.10.1 (notice the zeros used for identifier and prefix)
------------------------------------------------------------
<component name="Microsoft-Windows-TCPIP" 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">
- <Interfaces>
- <Interface wcm:action="add">
- <Ipv4Settings>
<DhcpEnabled>false</DhcpEnabled>
</Ipv4Settings>
- <UnicastIpAddresses>
<IpAddress wcm:action="add" wcm:keyValue="1">10.90.10.36/24</IpAddress>
</UnicastIpAddresses>
<Identifier>Local Area Connection</Identifier>
- <Routes>
- <Route wcm:action="add">
<Identifier>0</Identifier>
<Prefix>0.0.0.0/0</Prefix>
<NextHopAddress>10.90.10.1</NextHopAddress>
<Metric>20</Metric>
</Route>
</Routes>
</Interface>
</Interfaces>
</component>
----------------------------------------------------------------------
DNS Server configuration:
- <component name="Microsoft-Windows-DNS-Client" 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">
- <Interfaces>
- <Interface wcm:action="add">
- <DNSServerSearchOrder>
<IpAddress wcm:action="add" wcm:keyValue="1">10.90.10.10</IpAddress>
<IpAddress wcm:action="add" wcm:keyValue="2">170.255.254.242</IpAddress>
</DNSServerSearchOrder>
<DisableDynamicUpdate>false</DisableDynamicUpdate>
<DNSDomain>arbor01.com</DNSDomain>
<Identifier>Local Area Connection</Identifier>
<EnableAdapterDomainNameRegistration>true</EnableAdapterDomainNameRegistration>
</Interface>
</Interfaces>
</component>
The subnet mask is indicated by a slash IP address, and the default gateway is defined in the Route section.
/24 would equal 255.255.255.0. /16 would equal 255.255.0.0 and so on. Similar to what you would see in a router configuration. I don't think you need the metric parameter in the Route section, but it doesn't hurt if you do have it.
Note: both the IP address and DNS server info is added in pass 4 - Specialize.
In the configuration below, the IP address info you would end up with would be:
IP address - 10.90.10.36
Subnet Mask - 255.255.255.0
Default Gateway - 10.90.10.1 (notice the zeros used for identifier and prefix)
------------------------------------------------------------
<component name="Microsoft-Windows-TCPIP" 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">
- <Interfaces>
- <Interface wcm:action="add">
- <Ipv4Settings>
<DhcpEnabled>false</DhcpEnabled>
</Ipv4Settings>
- <UnicastIpAddresses>
<IpAddress wcm:action="add" wcm:keyValue="1">10.90.10.36/24</IpAddress>
</UnicastIpAddresses>
<Identifier>Local Area Connection</Identifier>
- <Routes>
- <Route wcm:action="add">
<Identifier>0</Identifier>
<Prefix>0.0.0.0/0</Prefix>
<NextHopAddress>10.90.10.1</NextHopAddress>
<Metric>20</Metric>
</Route>
</Routes>
</Interface>
</Interfaces>
</component>
----------------------------------------------------------------------
DNS Server configuration:
- <component name="Microsoft-Windows-DNS-Client" 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">
- <Interfaces>
- <Interface wcm:action="add">
- <DNSServerSearchOrder>
<IpAddress wcm:action="add" wcm:keyValue="1">10.90.10.10</IpAddress>
<IpAddress wcm:action="add" wcm:keyValue="2">170.255.254.242</IpAddress>
</DNSServerSearchOrder>
<DisableDynamicUpdate>false</DisableDynamicUpdate>
<DNSDomain>arbor01.com</DNSDomain>
<Identifier>Local Area Connection</Identifier>
<EnableAdapterDomainNameRegistration>true</EnableAdapterDomainNameRegistration>
</Interface>
</Interfaces>
</component>
Share this topic:
Page 1 of 1



Help
Back to top









