• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 605
  • Last Modified:

DNS and Server Replication


This is a follow on from a question I posted early in the week.

I have a client with a 2008 Server DC and a 2008 Server as a Terminal Server.

Now once the TS has rebooted, replication to the DC fails, to re-establish replication I have to run
dcdiag /TEST:DNS
Then go into "Active Directory Sites" , drill down to the TS, "Right click" and select "Replicate Now"

My question is, is there a way to use a command line to activate the "Replicate Now" command rather than the "Active Directory Sites and Servers" snap in ?
I want to create a batch file to include the "DCdiag /test:dns and the "Replicate Now" command if possible.


1 Solution
Kash2nd Line EngineerCommented:
you should be able to setup a batch file script of some sort automation and can make the script run at startup when the computer reboots.

some info on here >>> http://social.technet.microsoft.com/Forums/scriptcenter/en-US/c00d1984-f2df-446f-9102-6e65f9890c0e/force-active-directory-replication-via-script
Here is another example from this website http://www.windowstricks.in/2009/11/force-active-directory-replication.html

repadmin /replicate destination_dsa source_dsa Naming Context

repadmin /replicate server2.Domain.com server1.Domain.com dc=Domain,dc=com

Destination server Name: server2.Domain.com
Source server Name: server1.Domain.com
Naming Context : dc=Domain,dc=com (Domain partition)
Sushil SonawaneCommented:
Make sure your NIC card Preferred dns server and alternet dns server setting pointing to your dns server. For AD command line synchronization "Repadmin" is tool.

For more info and your question answer refer below link.




Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now