DNS and Server Replication

Hi,

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.

Cheers

Steve
t2sAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
adriaanvwCommented:
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

Example:
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)
0
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.

http://social.technet.microsoft.com/Forums/windowsserver/en-US/784d12fd-feb9-4e95-b675-9a4e047bed97/ad-replication-commands

http://support.microsoft.com/kb/232072

http://technet.microsoft.com/en-us/library/cc794809(v=ws.10).aspx

http://technet.microsoft.com/en-us/library/cc816915(v=ws.10).aspx
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.