Jump to content
Sign in to follow this  

Set DNS Settings on Interfaces

Recommended Posts

Hi Folks,

currently we are moving many computers from one to another domain and the admin over here messed with the DNS settings on many of the machines. Some settings can be easily fixed in the key

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\ which I set with an AutoIT Script.

But there is one setting which is tied to the network interface card. So the setting I want to adjust is a value under a key which is not the same on every client.

My suggestion now would be to just set it in every interface (does not matter if it is set on every or just the LAN interface). But how do I read out all Regkeys under a certain key and use this list to alter a value under each of those keys?



The last part is what is different on every client and those keys very in the number of adapter too.

Any help would be appreciated.

Sorry for my lack of knowledge in Auto-IT scripting


Edited by johann

Share this post

Link to post
Share on other sites

I don't know if this could help you but you can use netsh (windows) command.

DNS example

netsh interface ip set dns "Local Area Connection" static

for the IP mask gateway use:

netsh interface ip set address "Local Area Connection" static IP MASK GATEWAY

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...