When you assign a static IP address to WinPE in either an automation partition or a boot disk, it fails, attempting to use DHCP even though static was assigned. In this case, the standard options within DS and Ghost 3.0 are used to assign an address rather than any custom methods (there are other articles mentioning how this may be done outside the DS/Ghost console). The option to configure this in DS/Ghost is under the BootDisk Creator, step 3 of 7 where you choose a Static configuration rather than the default DHCP configuration. Though saved in the appropriate files, the automation image will still request and use DHCP.
The Following may be noted in thestaticip.log
The command comleted successfully
Element not found
The service has not been started.
The object is already in the list.
Accoding to staticip.bat file its going to set the Ip address to the specified interface name "Local Area Connection" but when client machine boots in automation it show the interface name as "Ethernet" and is not able to find the specified interface that why it fails with an
"attempting to use DHCP" even though static was assigned.
Some situations where a single NIC is being used have been resolved in Ghost Solution Suite 3.0 HF2. For more information on HF 2 see http://www.symantec.com/docs/DOC9009
For versions prior to that or systems with multiple network cards here's a workaround:
To verify the Interface name follow steps 1 and 2
STEP 1 -
Boot the client machine in Automation
STEP 2 -Run the below command to find the correct name of Interface.
command:- netsh interface ip show addresses
For example Output:-
Configuration for interface "Ethernet"
DHCP enabled: No
IP Address: 169.254.162.255
Subnet Prefix: 169.254.0.0/16 (mask 255.255.0.0)
Configuration for interface "Loopback Pseudo-Interface 1"
DHCP enabled: No
IP Address: 127.0.0.1
Subnet Prefix: 127.0.0.0/8 (mask 255.0.0.0)
-Here interface name is "Ethernet"
-Make the changes in staticip.bat file like below-
netsh interface ipv4 set address name="Ethernet" source=static addr=192.168.93.252 mask=255.255.255.0 gateway=192.168.93.245 gwmetric=1
netsh interface ipv4 add dnsserver name="Ethernet" addr=192.168.93.20 index=1
netsh interface ipv4 add dnsserver name="Ethernet" addr=192.168.93.10 index=2
-Save the changes
-Re-create the Automaion Package.
-Install it on the client machine.
-After that client machine will be able to boot in Automation and gets the staticip address.