Hi,
You can use netsh command to change the IP settings on the computers.
To change DNS setting from e.g. 10.10.10.10 to 10.10.10.100 you would write
a script that would look something like this...
netsh int ip add dns "Local Area Connection" 10.10.10.100
netsh int ip delete dns "Local Area Connection" 10.10.10.10
This would be simple way. Now you could complicate this script to e.g. first
check if this script has already run on this computer and changed the
settings. Next thing what you could do is check the name of Connections on
the computer. The script above assumes that the name of connection is "Local
Area Connection"
I hope this helps,
--
Mike
Microsoft MVP - Windows Security
"None" <(E-Mail Removed)> wrote in message
news:FD748BE9-7D52-4E99-AB43-(E-Mail Removed)...
>I have about 300 servers that have static DNS entries and I would like to
> change them using some sort of script. Does anyone know how this would be
> possible or maybe an easier way of doing it?
>
> Thanks.
|