Create an Active Directory Site

Creates an Active Directory site and sets the site link for the new site.

 
 
 
 
 
(0)
Add to favorites
Active Directory
8/10/2009
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Object doesn't exist error
    1 Posts | Last post March 29, 2011
    • To get around errors on line 30 where you are connecting to the site link object, replace line 30 with the following:
      
      Set objInterSiteTransports = GetObject("LDAP://" & _
          "cn=" & strSiteLinkType & ",cn=Inter-Site Transports,cn=Sites," & strConfigurationNC)
      Set objSiteLink = objInterSiteTransports.Create("siteLink", strSiteLinkRDN)
      
      I don't remember where I originally found that reference, but I see a lot of pages pointing back to this example now.
  • Script works on Windows 2008
    1 Posts | Last post July 16, 2010
    • Tested the script on Windows 2008 (Service Pack 2)