????? ????? ???? ???? ??? ?????? ??? ???? ????? ??????

?????? ????????? ?????? ?????????
???? ???????: 248717 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

????? ???????? ?????? (GC) ??? ???? ??????? ????? ?? ?? ???? ?? ???????. ?????? ??? ??????? ????? ??????? ?? ?????? ???? ???? ??? ?????? ????? ???????? ??? GC. ????? ????? ?????? ???? ???? ????? ????? ???????? (???????? ??? ?????? ??????????) ??? ??????? ?????? ?? ?????? ???? ???? ???? ??????? "?" ????? ????? ????????.

??????? ????

??? ??? ????? ????? ??? ????? ???????? ?? GC ? ?? ????? ?????? ??????? ??? ??? ???? ???? ????? ???????? ???? ???????.

??? ????? ???? attributeSchema ??? ????? ??? ??? ?????? ????? ???????? ??? GC ???? ???? ???? ??????? ????? (???? ????? ??? "?????? ?????") ?? ???? ???????? ??? GC ??? ?? ???? ?????. ???? ??? ?????? ??? ??????? Windows 2000 ??????? ?? ??? ???????.

????? ?? ???? ???? ????? ? ??????? ?? ?????? ????? ???. ??? ??? ??? ?????? ????? ?????, ??? ????? ???????? ???????? ?? ?????? ???????? ???? ??????? ??? ?? ?????. "????" ???? ???????? ?????? ????? ??? ?? ??????.

??? ????? ??? ??? GC ??? ??????? ??? ?????? ????? ?????? ??????? (?????? ?????? ???????). ???? ??? GC ?????? ??? "?????? ?????" ????? ??????? ??? ????? ??? ???? ????? ???? ?? ?????? ??????? ???? ????? ???????? ???. ???? ??? ?????? ????? ??? ??? ?? ????? ????? ????? isMemberOfPartialAttributeSet ??? "????". ????????? ??? ??? ??? ?????? ????? ??? ???????? ?????? ??????? ??????? ??? ? ?? ?????? ????? ??? ?? ??????? ?? ??? ???? ??????? ?? ??? ???? ??????.

???????:

"??? ??????" ?? ??????? ???? ???? ??? ??? "???? ???????." ??? ?????? ??? ?????? ??????? ?? GC ?????? ??? ????? ????????.

?????? ???? ????? ???????? ??? GC ???? Active Directory ??? ????? ??????. ?????? ?????? ??? ??? ????? ????? ?? ?????? "?????????" ????"". ???????? ??? ????? ????? ??? ???????? ? ??? ????? ????? ????? ??? ??????? ???????? ????. ?????? ??? ??????? ?????? ??? ??? ??????? ???? ??? ??? ??????? ????? ?????? ?? "????? ??????? ?? Microsoft:
216060????? ??????? ????? ??? ?????? ??????? ??? ????
??? ?????? ??? ??????? ??????? ???? ??? ??????? ?? Active Directory ???? ???? Microsoft ???????? (MMC). ???? ?????? ??? ???? ??? ?????? ???????? ???? ????? ???? ?? ????? ????? Windows 2000 ?? ?? ???? ????? Schmmgmt.dll ?? ??? ?????? ??? ???? Windows 2000.

?????? MMC ???? ???????? ???? ??????? ???????:
  1. ???? ??? ???? ?? ???? ??? ????? ????? mmc ?? ???? ??? ?????.
  2. ?? ??????? ???? ???? MMC ? ???? ??? ?????/????? ???? ??????-????...
  3. ???? ??? ????? ?? ???? ??? ???? Active Directory.
  4. ???? ??? ????? ? ???? ??? ????? ?? ???? ??? ?????.
???? ????? ???? ??????? ??????? ?????? ????? ??????? ??????? ?? ??????? ???????? ????? ?????? ?????? ?? ?????? ???????? MMC ??????:
  1. ????? ???? Active Directory
  2. ???? ????? | ???????? ????????....
  3. ???? ?????? ???? ?????? ?? ???? ????? "??????" ??? "???? ???? ??????" ???.
  4. ???? ??? ?????.
?? ??? ???????? "??????? ????" ???? ????? ???? ?????? GC. ???? ??? ?????? ?????? ???? ?????? GC ??? ?? ??? ???????? MMC ???? ???????? ?????? ADSI.

??? ????? ??????? ??????? ???? Active Directory MMC ????????

  1. ???? ??? ???? "????" ?? ?????? ????????.
  2. ?? ????? ??????? ?? ???????? ????? ??? ??? ??? ????? ???????? ???? ????? ??????? ???? ?? ???? ??? ?????.
  3. ???? ?????? ???? ???????? ??? ?????? ??? ????? ??? "?????? ??????? ????????".
  4. ???? ??? ?????.
??? ?? ??? ????? ????? ??????? ?????, ???? ????? ?????? ????? ?????? ????? ???? ????? ???????? ??? GC:
???? ????? ?? ??? ??? ??? ?? ???? ????? ???????? ??? ????? ??? ?????? ?????? ??????? ????????.

??? ??????? ADSI ??????? ??????? ??????

?????? ????? ?????? ????? (ADSI) ???? ????? ??????? ??? ?????? ???? ???? ???????? ?????? ?????? ?????? ?????? (LDAP) ????? ??. ??? ????? ???? ???? ?????? ??? ????? ?? ?????? ?????? ????????? ???? ??? ????? ???????? ??? 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)
oRecordset.MoveFirst
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
Else
  oAttribute.PutEx ADS_PROPERTY_CLEAR, "isMemberOfPartialAttributeSet", 0   'Clear the property
End If

'Write to schema
oAttribute.SetInfo

'Clean Up
Set oAttribute = Nothing
Set oRootDSE = Nothing
oRecordset.Close
oConn.Close
Set oConn = Nothing
Set oRecordset = Nothing
				
??? ?? ??? ????? ????? ??????? ?????, ???? ????? ?????? ??? ?????? ????? ???????? ?????:
???-2147016651 (80072035): ??? ?? ?????. ?????? ??? ???? ??? ?????? ?????.

?????

?????? ??? ??????? ??????? ???? ??? ???? ????????? ????????? ??????? ?? "????? ??????? ?? Microsoft:
232517???? ???????? ??????? ???????? ????? ????????
230663????? ????? ???? ????? ??????? ?????
?????? ??? ??????? ?????? ??? ADSI ???? ???? Microsoft ?????? ??? ?????:
http://msdn2.microsoft.com/library/aa772170.aspx

???????

???? ???????: 248717 - ????? ??? ??????: 16/?????/1428 - ??????: 3.4
????? ???
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Active Directory Service Interfaces 2.0
  • Microsoft Active Directory Service Interfaces 2.5
????? ??????: 
kbmt kbglobalcatalog kbhowto kbmsg KB248717 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????248717

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com