I was trying to deploy an image to a server I had never used using Windows Deployment Services (WDS) and faced a big problem: the machine would not acquire an IP address and could not contact the WDS server. I got a message about “WDS server could not be contacted”, which was kind of weird since it had been the WDS server that had helped this server PXE boot in the first place.
I pressed “F10 + Shift” to bring up the command prompt whilst in the boot screen of the WDS deployment and issued an “ipconfig” only to find I did not have an IP address.
After a bit of searching online, I found the command that takes care of this issue:
Once I ran that command, the server acquired an IP address and then I could successfully restore an the image.