How can a static IP address be set in WinPE 2.0?
Use the NETSH command from a command prompt. The syntax for this would be:
netsh int ip set address local static (ip_address) (subnet_address) (default_gateway)
netsh int ip set address local static 10.80.10.35 255.255.255.0 10.80.10.1
(IP address of 10.80.10.35 with a Subnet Mask of 255.255.255.0 and a Default Gateway of 10.80.10.1 would be set on the "Local Area Connection").
If there is more than one NIC then you can specify which connection you want by changing the local to Name="Local Area Connection2" which would work for the second connection. This can be confirmed by doing an IPCONFIG /ALL.
DNS can be set in a similar way:
netsh int ip dns local static (dns_entry) primary
net int ip set dns local static 10.80.10.10 primary