?
Solved

Change DNS IP for all PCs

Posted on 2010-09-18
14
Medium Priority
?
452 Views
Last Modified: 2012-05-10
I have 90 PC (XP Pro) in one Domain with static IP (I cannot go to DHCP )

IP   : 172. 16 .10. XXX
SM : 255.255. 0  . 0
GW:172. 16. 10. 254

DNS : 172.16.10.1 (Primary )
DNS : 172.16.10.2

I need to change all DNS IP to

DNS : 172.16.10.2 (Primary )
DNS : 172.16.10.3

 I should go to each PC and log in as administrator then change it for them.  
 how to change it in one shot?
0
Comment
Question by:AymanDasa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
  • +2
14 Comments
 
LVL 3

Expert Comment

by:gorhon
ID: 33707241
Use visual basic script. and add logon script.


for any script here.

http://technet.microsoft.com/en-us/library/ee692588.aspx

0
 
LVL 14

Expert Comment

by:theras2000
ID: 33707243
It's not easy but there is one way that I can think of.  The netsh command.
Something like this: netsh interface ip set dns "Local Area Connection" static 172.16.10.2
Here's a guide http://www.petri.co.il/configure_tcp_ip_from_cmd.htm#

Once you've tested and perfected that on one PC, then you just have to distribute a script via GPO or other method to run it on every PC.
0
 
LVL 14

Expert Comment

by:theras2000
ID: 33707246
I should mention that with a command like netsh, there's many options available and you should make use of the ? question mark at every level.
e.g. netsh /?
netsh int /?
netsh int ip /?
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

Author Comment

by:AymanDasa
ID: 33707253
but how to do it for all PCs ?
0
 
LVL 3

Expert Comment

by:gorhon
ID: 33707276
Do you use Logon script?
0
 

Author Comment

by:AymanDasa
ID: 33707456
no. but if you need I can use
0
 
LVL 14

Expert Comment

by:theras2000
ID: 33707517
You must use GPOs.  What's your knowledge of them, to save us typing out a million instructions?  You must know something about them, because you've flagged GPO as one of the topics.
0
 
LVL 3

Expert Comment

by:gorhon
ID: 33707538
:)) Sorry thats true.
0
 
LVL 15

Expert Comment

by:JBond2010
ID: 33707638
You can configure Group Policy to change the dns ip on all PCs. If you open Active Directory and then right click on your domain and select properties and edit the default domain policy. Go to Computer Configuration > Administrative Templates > Network > DNS Client > any settings you wish to configure are in here, the main one "DNS Servers" .

Hope this helps.
0
 
LVL 15

Expert Comment

by:JBond2010
ID: 33707644
If you try this, then open a command window > start > run > type cmd > click ok > and then type gpupdate /force > then will group policy to replicate the changes on the domain.
0
 
LVL 39

Expert Comment

by:ChiefIT
ID: 33708691
I assume you have a DHCP server, otherwise you would be providing a fixed IP per computer on the network.

Go into DHCP scope options AND define your DNS servers. That will pass down the new DNS IPs to all DHCP clients.

For any fixed IP computers, you will need to manually touch each one. That should include servers, router, and any other fixed IP based nodes.
0
 
LVL 39

Accepted Solution

by:
ChiefIT earned 2000 total points
ID: 33708728
Oh, I see, they are all static IPs. So, a script would be the only way.

This script worked, before.

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/2003_Server/Q_23778819.html
0
 

Author Comment

by:AymanDasa
ID: 33709336
thanks for all
I already finish 75 PC throw REGEDIT
http://articles.techrepublic.com.com/5100-22_11-5109343.html
0
 

Author Closing Comment

by:AymanDasa
ID: 33709355
thanks for all
I already finish 75 PC throw REGEDIT
http://articles.techrepublic.com.com/5100-22_11-5109343.html
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month10 days, 20 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question