Posted on 2009-04-15
I have zero scripting abilities other than I can look at one and understand what it's doing. What I need is a script that will read all of the NIC's in a machine, assign an IP/Subnet Mask/Gateway to the first NIC, and then attempt to ping the gateway. If it is unable to ping the gateway, it will wipe the IP of the first NIC and apply it to the second NIC, etc until it finds the NIC that has network connectivity.
As a back ground, this will be part of a Windows Server 2008 unattended build. We have run into issues with our 2003 unattended that it pics the wrong NIC during the WinPE session. Any help would be greatly appreciated.