Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
First, dig through that pile of old CDs and find your Windows 2000 installation CD. Insert it into the Win2k machine you want to run your replication script on. Go to the SUPPORT\TOOLS directory and click on SETUP.EXE. This will install a bunch of handy support tools for Win2k.
Next create a WB script that looks something like this:
; Load the ADs tools dll as a com object. AdsTools = ObjectOpen("IADsTools.DCFunctions") ; Replicate a partition. nResult = AdsTools.ReplicaSync("ToServer","dc=mysubdomain,dc=mydomain,dc=com", "FromServer") ; Note: returns zero on success. If nResult == 0 Message("IADsTools Replication", "Completed successfully.") Else Message("IADsTools Replication", "Failed.") EndIf
Of course you need to substitute values for your site and it might be a good idea to read the documentation provided with the support tools. The "ReplicaSync" member has several optional parameters that may be important to you.
Article ID: W15798
File Created: 2006:03:17:11:05:48
Last Updated: 2006:03:17:11:05:48