I am looking for scripted solution to change the DNS settings on a number of workstations which have statically assigned IP addresses (and therefore DNS settings).
All the workstations are in a domain and I will probably use group policy to deploy the script.
I created a script myself which used NETSH however a number of the workstations are in other languages and therefore the adapter name is different. Also, on some machines people have renamed the adapters.
The clients are mainly Windows XP but there are also some Windows 2000, Vista and Windows 7
Incase anything goes wrong and settings need to be reverted I need to log the before and after to C:\Temp\Networksettings.log
Some machines have multiple adapters and therefore I want to ensure that only the adapter with a 10.x.x.x address range have their DNS servers changed.
The DNS servers need to be
BTW - I know that these clients *should* be configured to use DHCP but we have other issues preventing that at the moment!