Forcing Replication in Sites and Services Snapin

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am sure you all are aware of the Replicate now option in sites and services
snapin.

My question is:
Do anyone know what DLL or file that controls this?
So when I rightclick and select replicate now, what functions are being
called?
(like rundll32 replinc.dll or something?)

Next question would be,
If I know the DLL can I then do the command: Rundll32 .*dll and force a
replication between my domains from a command in CMD?
 
Acidbat said:
I am sure you all are aware of the Replicate now option in sites and services
snapin.

My question is:
Do anyone know what DLL or file that controls this?
So when I rightclick and select replicate now, what functions are being
called?
(like rundll32 replinc.dll or something?)

Next question would be,
If I know the DLL can I then do the command: Rundll32 .*dll and force a
replication between my domains from a command in CMD?
Maybe better idea will be t use repadmin tool to force replication:

http://www.microsoft.com/resources/...ndowsserv/2003/all/techref/en-us/repadmin.asp
 
If you want a vbs script to do this, look at the IADStools function on the
2003 windows support tools. (It needs to be installed on the computer
requesting the replication)
In the code I have below that I have tweaked for a bigger script I use, the
variable serv1 is the servername to GET the replication updates from the
server KS02. You can put servers' names in there directly (such as ks02) but
when you use varialbes such as serv1, you need to use the CSTR(serv1) in
front of it. Change your domain string to your environment.

Set comDLL=CreateObject("IADsTools.DCFunctions")
Result=comDLL.ReplicaSync (CStr(serv1),"DC=com","KS02")
 
Back
Top