How to write a Startup Script to Add DNS Entries on Client PCs in Domain
Posted on 2008-11-11
Hi Have One Doman Controller and many Client PCs. I had added tow more Additional Domain Controller onto the Network. I want to update these two entries as additional DNS entries on all the client PCs. How to do that via Group Policy?
I want the below commands to be run at clients end when a user logs on :
netsh int ip set dns "local area connection" static 172.30.160.21 primary
netsh int ip add dns "local area connection" 172.30.160.22
netsh int ip add dns "local area connection" 172.30.160.23
These commands would manually add the three IPs as DNS. How do I get this enforced on all the PCs (round 300) whcih are under the same domain.?