The following code will change the NIC settings to "Obtain IP Address Automatically" from a static IP on "Local Area Connection". Q #1: What I cannot figure out is how to also change the DNS server to "Obtain DNS Server Address Automatically".. Here is a link that will help with the visualization.

How to configure IPv6 address in Windows Obtain DNS server address automatically Specifies that the IPv6 addresses for DNS servers are automatically determined by stateful address autoconfiguration (DHCPv6). Use the following DNS server addresses Specifies that the IPv6 addresses of the preferred and alternate DNS servers for this connection or adapter are manually configured. Cannot set "Obtain DNS server address automatically Jul 14, 2012

How to configure wired TCP/IP Properties of my computer

Jan 11, 2004

Script/Command that will change the DNS to Obtain DNS

Delete all the files in your ‘etc’ folder. This is a simple fix. Just go to … How to configure a Windows client to obtain IP Address