11.1 Creating a Site
You want to create a site.
18.104.22.168 Using a graphical user interface
22.214.171.124 Using a command-line interface
Create an LDIF file called create_site.ldf with the following contents:dn: cn=<SiteName>,cn=sites,cn=configuration,<ForestRootDN> changetype: add objectclass: site dn: cn=Licensing Site Settings,cn=<SiteName>,cn=sites,cn=configuration, <ForestRootDN> changetype: add objectclass: licensingSiteSettings dn: cn=NTDS Site Settings,cn=<SiteName>,cn=sites,cn=configuration,<ForestRootDN> changetype: add objectclass: nTDSSiteSettings dn: cn=Servers,cn=<SiteName>,cn=sites,cn=configuration,<ForestRootDN> changetype: add objectclass: serversContainer
then run the following command:> ldifde -v -i -f create_site.ldf
126.96.36.199 Using VBScript' This code creates the objects that make up a site. ' ------ SCRIPT CONFIGURATION ------ strSiteName = "<SiteName>" ' e.g. Dallas ' ------ END CONFIGURATION --------- set objRootDSE = GetObject("LDAP://RootDSE") set objSitesCont = GetObject("LDAP://cn=sites," & _ objRootDSE.Get("configurationNamingContext") ) ' Create the site set objSite = objSitesCont.Create("site","cn=" & strSiteName) objSite.SetInfo ' Create the Licensing Site Settings object set objLicensing = objSite.Create("licensingSiteSettings", _ "cn=Licensing Site Settings") objLicensing.SetInfo ' Create the NTDS Site Settings object set objNTDS = objSite.Create("nTDSSiteSettings","cn=NTDS Site Settings") objNTDS.SetInfo ' Create the Servers container set objServersCont = objSite.Create("serversContainer","cn=Servers") objServersCont.SetInfo WScript.Echo "Successfully created site " & strSiteName
To create a site in Active Directory, you have to create a number of objects. The first is a site object, which is the root of all the other objects. The site object contains the following:licensingSiteSettings
This object isn't mandatory, but is created automatically when creating a site with AD Sites and Services. It is intended to point clients to a license server for the site.nTDSSiteSettings
This object stores replication-related properties about a site, such as the replication schedule, current ISTG role holder, and whether universal group caching is enabled.serversContainer
This container is the parent of the server objects that are part of the site. All the domain controllers that are members of the site will be represented in this container.
After these objects are created, you've essentially created an empty site. If you didn't do anything else, the site would not be of much value. To make it usable, you need to assign subnet objects to it (see Recipe 11.4), and add the site to a siteLink object to link the site to other sites (see Recipe 11.7). At that point, you can promote or move domain controllers into the site, and it should be fully functional.
11.1.4 See Also
MS KB 318480 (HOW TO: Create and Configure an Active Directory Site in Windows 2000)
Better business marketing cheap printing services. . новости форекс forex скачать . Quality synthetic lace front wigs high Quality synthetic hair wigs lace front. . Shop bathroom vanity mirrors. . 메이저사이트 토토사이트 토토사이트추천. . Women Latest and Trendy Collection of Clothes style websites to buy cheap Trendy Clothes Latest. . Online shop deer antlers for dogs. . Brooklyn Self Storage Storage units in Brooklyn. . Classy and fun chicago bachelorette party. . Vintage chronograph watches movements of vintage. . Tony blair and bill clinton phone calls fake transcripts. . Cheap E-Juices Vegetable Glycerin - buy best Cheap. . Network repair Orange county links for Orange county computer Network repair. . high quality website . Token the blockchain innovation Forum.