[ Team LiB ] |
Recipe 11.2 Listing the Sites11.2.1 ProblemYou want to obtain the list of sites. 11.2.2 Solution11.2.2.1 Using a graphical user interface
11.2.2.2 Using a command-line interfaceRun the following command to list the sites: > dsquery site Run the following command to view the properties for a particular site: > dsget site "<SiteName>" 11.2.2.3 Using VBScript' This code lists all of the site objects. set objRootDSE = GetObject("LDAP://RootDSE") set objSitesCont = GetObject("LDAP://cn=sites," & _ objRootDSE.Get("configurationNamingContext") ) objSitesCont.Filter = Array("site") for each objSite in objSitesCont Wscript.Echo " " & objSite.Get("cn") next 11.2.3 DiscussionSite objects are stored in the Sites container (e.g., cn=sites,cn=configuration,dc=rallencorp,dc=com) in the Configuration Naming Context (CNC). For more information on creating sites, see Recipe 11.1. |
[ Team LiB ] |