After an attributeSchema object is created, marking an additional attribute to replicate to the GC causes a full replication (also known as a "full sync") of all objects to the GC as described below. This behavior occurs on the versions of Windows 2000 listed in this article.
Every server has a full and write-able copy of its own domain. If that server is also a GC, the remaining domains in the forest are held as read-only, partial copies. "Partial" means that only a subset of the attributes is kept.
When an attribute is added to the GC, it is added to the partial copy subset (partial attribute set). This causes the GC to perform a "full sync" of all the read-only copies again to repopulate itself with only the partial attributes that it needs to hold. This full sync occurs even if the attribute property isMemberOfPartialAttributeSet is set to "True." Thus, it only does a full sync on the read-only partial copy domains and not its own write-able domain, the configuration directory partition or schema directory partition.
"Directory partition" has been previous referred to as "naming context." Removals from the GC are handled locally without replication.
In order to modify the attributes that replicate to the Active Directory GC, you must modify the schema. To modify the schema, an administrator must be made a member of the "Schema Admins" group. In addition to being a member of this group, a registry key must be set on the Schema master. For additional information about this process, click the article number below to view the article in the Microsoft Knowledge Base:
To activate the Schema MMC snap-in follow these steps:
- Click Start, click Run, type mmc, and then click OK.
- On the MMC Console menu, click Add/Remove Snap-in....
- Click Add, and then click Active Directory Schema.
- Click Add, click Close, and then click OK.
- Highlight Active Directory Schema
- Choose Action | Operations Master....
- Click to select the box titled The Schema may be modified on this Domain Controller.
- Click OK.
To Make Modifications Using Active Directory Schema MMC Snap-In
- Click the Attributes folder in the snap-in.
- In the right pane, scroll down to the desired attribute, right-click it, and then click Properties.
- Click to select the Replicate this attribute to the Global Catalog check box.
- Click OK.
To Make Modifications Using ADSI ScriptsActive Directory Services Interfaces (ADSI) can make modifications to the schema through its Lightweight Directory Access Protocol (LDAP) provider. The code below determines the location of the schema, bind to the attribute in the schema, and make the necessary changes to force it to replicate to the GC.
Const ADS_PROPERTY_CLEAR = 1
' Declarations are commented for use with VBScript
Dim oRootDSE 'As IADs
Dim oConn 'As ADODB.Connection
Dim oRecordset 'As ADODB.Recordset
Dim strAttribute 'As String
Dim strADsPath 'As String
Dim oAttribute 'As IADs
Dim bReplicate 'As Boolean
strAttribute = "Department" 'Replace with the name of the attribute to change replication
bReplicate = True 'Replicate to GC True/False
Set oConn = CreateObject("ADODB.Connection")
Set oRootDSE = GetObject("LDAP://RootDSE")
oConn.Provider = "ADsDSOObject"
oConn.Open "ADs Provider"
strQuery = "<LDAP://" & oRootDSE.Get("schemaNamingContext")
& ">;(&(objectClass=attributeSchema)(cn=" & strAttribute & "));cn,adspath;subtree"
Set oRecordset = oConn.Execute(strQuery)
strADsPath = oRecordset.Fields("ADsPath") 'store the path of the object in the schema
Set oAttribute = GetObject(strADsPath) 'Get the object in the schema
If bReplicate Then
oAttribute.Put "isMemberOfPartialAttributeSet", True 'Set the property to true
oAttribute.PutEx ADS_PROPERTY_CLEAR, "isMemberOfPartialAttributeSet", 0 'Clear the property
'Write to schema
Set oAttribute = Nothing
Set oRootDSE = Nothing
Set oConn = Nothing
Set oRecordset = Nothing
รหัสบทความ: 248717 - การตรวจสอบครั้งสุดท้าย: 28 ก.ย. 2007 - ฉบับแก้ไข: 1