Sysprep on WIndows 2016 is retaining DNS IP configuration
Shiva Konduru
1
Reputation point
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?
- There is a windows ec2 instance with two nics connected to it.
- 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.
- We run sysprep and create an image out of it.
- Launch the new ec2 instance using this image.
- As instance gets launched aka when windows is in process of booting up, we add a 2nd NIC.
- 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?
Regards,
-Shiva
Sign in to answer