netsh is your friend... you can find some more info here
Just create a batch and deploy it where needed. Something like:
netsh interface ipv4 set address name="Local Area Connection" source=dhcp
netsh interface ipv4 set dnsservers name="Local Area Connection" source=dhcp
@echo It may take a few moments for changes to take effect. You may close this window or
you just have to have the correct name of the network adapter.