J
JP
This can't be this difficult... I want to set static IP address info for a Vista unattended install.
(Vista Ultimate)
Looking through WSIM, I can't find just a single place for this. TechNet and the
WSIM Help were no help. All their examples use DHCP.
What I would like to add is:
IP address
Subnet Mask
Default Gateway
That's all, nothing complicated. Does anyone know how to do this in WSIM?
I did try the below in the Specialize pass (pass 4) in autounattend.xml. Install will add the IP
address, but the subnet mask is 255.0.0.0 and there is no default gateway...
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>
(Vista Ultimate)
Looking through WSIM, I can't find just a single place for this. TechNet and the
WSIM Help were no help. All their examples use DHCP.
What I would like to add is:
IP address
Subnet Mask
Default Gateway
That's all, nothing complicated. Does anyone know how to do this in WSIM?
I did try the below in the Specialize pass (pass 4) in autounattend.xml. Install will add the IP
address, but the subnet mask is 255.0.0.0 and there is no default gateway...
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>