ShivaKonduru-4463 avatar image
0 Votes"
ShivaKonduru-4463 asked JennyHu-8716 edited

Sysprep on WIndows 2016 is retaining DNS IP configuration

When we run sysprep with generalize, and spin up an instance out of that image, image is retaining the dns ip. Is there anything we can do here to prevent this from happening?

  1. There is a windows ec2 instance with two nics connected to it.

  2. We shutdown the machine, make a copy of C: drive and launch it in a restricted environment/temp env. Note that here it is spinned up with only one NIC.

  3. We run sysprep and create an image out of it.

  4. Launch the new ec2 instance using this image.

  5. As instance gets launched aka when windows is in process of booting up, we add a 2nd NIC.

  6. We notice that 2nd NIC gets the correct IP but the DNS IP is from the machine in step 1.

Any idea on what we can do to fix this?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Thank you for posting in Microsoft Q&A. According to your description, your issue seems more related with Windows Server. As the Server topic have not moved to Microsoft Q&A yet, please kindly re-post your issue to forum TechNet.

Note that TechNet is retiring soon, and all supported forums would be moved to Microsoft Q&A later in April or May. Please watch out for our future announcements.

Best Regards,

0 Votes 0 ·

0 Answers