We used a VBS script to change our WINS on clients, we pushed it out with Landesk, I think you can do similar for DNS, not sure.
(replace xxx.xxx.xxx.xxx with your IP)
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
" & strComputer & "\root\cimv2")
Set colNetCards = objWMIService.ExecQuery _
("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True")
For Each objNetCard in colNetCards
strPrimaryServer = "xxx.xxx.xxx.xxx"
strSecondaryServer = "xxx.xxx.xxx.xxx"
objNetCard.SetWINSServer strPrimaryServer, strSecondaryServer
You can do this with Window's NETSH tool. Just find the netsh commands and throw them in a text file.
So are you saying the clients are using Static DNS settings instead of DHCP?
Do you want them to continue to use Static DNS settings or do you want them to move to DHCP?
You can do both a with a NETSH script. You can probably get the syntax you need simply by running the following command on a workstation:
NETSH dump > c:\myscript.txt
You can analyze that script and get a feel for the syntax as well as research a little of the NETSH syntax on Microsoft's site.
Once you create the script that works, I believe you can push it in a batch file package fairly easy, just include the script as an additional file
REM My Batch file NETSH -f MyNetshScript.txt
I agree with Jared use Netsh. We did this a while back in our shop and you can script it with VB or Autoitscript, but we had the most success with Netsh. Here are some links to get you started:
It is also a good tool to get familiar with, becuase you can use it to reset corrupt or damaged IP configs (spyware).
When you have successfully accomplished this task, please post the method you used. Maybe even write your own document on it.
By chance just had to convert about 50 machines from static to dynamic dns this evening. Very simple, create a batch file with this line:
netsh interface ip set dns "Local Area Connection" dhcp