Active Directory Cookbook for windows server 2003- P36:If you are familiar with the O'Reilly Cookbook format that can be seen in other popular books, such as the Perl Cookbook, Java Cookbook, and DNS and BIND Cookbook, then the layout of this book will not be anything new to you. The book is composed of 18 chapters, each containing 10-30 recipes for performing a specific Active Directory task. Within each recipe are four sections: problem, solution, discussion, and see also. | that were created or that were associated with the default site and determine what site they really should be associated with. Recipe Creating a Site Link Problem You want to create a site link to connect two or more sites together. Solution Using a graphical user interface 1. Open the Active Directory Sites and Services snap-in. 2. Expand the Sites container. 3. Expand the Inter-Site Transports container. 4. Right-click on ip or smtp and select New Site Link. 5. For Name enter the name for the site link. 6. Under Site is not in this site link select at least two sites and click the Add button. 7. Click OK. Using a command-line interface The following LDIF would create a site link connecting the SJC and Dallas sites dn cn Dallas-SJC cn IP cn inter-site transports cn sites cn configuration ForestFootFN changetype add objectclass siteLink siteObject cn SJC cn sites cn configuration ForestFootFN siteObject cn Dallas cn sites cn configuration ForestFootFN If the LDIF file were named create site you d then run the following command ldifde -v -i -f create site Using VBScript This code creates a site link ----- SCRIPT CONFIGURATION -------- intCost 100 site link cost intReplInterval 180 replication interval in minutes strSitel Site1 . SJC strSite2 Site2 . Dallas strLinkName strSitel - strSite2 ----- END CONFIGURATION ----------- Taken from ADS_PROPERTY_OPERATION_ENUM const ADS_PROPERTY_UPDATE 2 361 set objRootDSE GetObject LDAP RootDSE set objLinkCont GetObject LDAP cn IP cn Inter-site Transports cn sites configurationNamingContext set objLink siteLink cn strLinkName strSitelDN cn strSitel cn sites configurationNamingContext strSite2DN cn strSite2 cn sites configurationNamingContext ADS_PROPERTY_UPDATE siteList Array strSite1DN strSite2DN cost intCost replInterval intReplInterval .