Error message when you run the Adprep /rodcprep command in Windows Server 2008: Adprep could not contact a replica for partition DC=DomainDnsZones,DC=Contoso,DC=com
| Article ID | : | 949257 |
| Last Review | : | March 15, 2008 |
| Revision | : | 1.0 |
SYMPTOMS
Adprep failed the operation on partition DC=DomainDnsZones,DC=Contoso,DC=com Skipping to next partition.
Adprep could not contact a replica for partition DC=ForestDnsZones,DC=Contoso,DC=com
Adprep encountered an LDAP error. Error code: 0×0. Server extended error code: 0×0, Server error message: (null).
Adprep failed the operation on partition DC=ForestDnsZones,DC=Contoso,DC=com Skipping to next partition.
Adprep completed with errors. Not all partitions are updated.
CAUSE
| • | The partition or the partitions that are referenced in the error message no longer exist. |
| • | The infrastructure master for the referenced partition or partitions has been forcefully demoted or is offline. |
RESOLUTION
If the specified partition exists, specify an infrastructure role owner that is online for the partition. You can do this by manually modifying the fSMORoleOwner attribute on the object, as described in the More Information section.
MORE INFORMATION
To determine the infrastructure master for a partition, query the fSMORoleOwner attribute on the infrastructure object under the naming context root in question.For example, query the fSMORoleOwner attribute on the CN=Infrastructure,DC=DomainDnsZones,DC=contoso,DC=com naming context root to determine the infrastructure master for the DC=DomainDnsZones,DC=contoso,DC=com partition. Similarly, query the fSMORoleOwner attribute on the CN=Infrastructure,DC=ForestDnsZones,DC=contoso,DC=com naming context root to determine the infrastructure master for the DC=ForestDnsZones,DC=contoso,DC=com partition.-------fixfsmo.vbs------------------const ADS_NAME_INITTYPE_GC = 3const ADS_NAME_TYPE_1779 = 1const ADS_NAME_TYPE_CANONICAL = 2set inArgs = WScript.Argumentsif (inArgs.Count = 1) then ' Assume the command line argument is the NDNC (in DN form) to use. NdncDN = inArgs(0)Else Wscript.StdOut.Write usage: cscript fixfsmo.vbs NdncDNEnd ifif (NdncDN <> ) then ' Convert the DN form of the NDNC into DNS dotted form. Set objTranslator = CreateObject(NameTranslate) objTranslator.Init ADS_NAME_INITTYPE_GC, objTranslator.Set ADS_NAME_TYPE_1779, NdncDN strDomainDNS = objTranslator.Get(ADS_NAME_TYPE_CANONICAL) strDomainDNS = Left(strDomainDNS, len(strDomainDNS)-1) Wscript.Echo DNS name: & strDomainDNS ' Find a domain controller that hosts this NDNC and that is online. set objRootDSE = GetObject(LDAP:/ & strDomainDNS & /RootDSE) strDnsHostName = objRootDSE.Get(dnsHostName) strDsServiceName = objRootDSE.Get(dsServiceName) Wscript.Echo Using DC & strDnsHostName ' Get the current infrastructure fsmo. strInfraDN = CN=Infrastructure, & NdncDN set objInfra = GetObject(LDAP:/ & strInfraDN) Wscript.Echo infra fsmo is & objInfra.fsmoroleowner ' If the current fsmo holder is deleted, set the fsmo holder to this domain controller. if (InStr(objInfra.fsmoroleowner, 0ADEL:) > 0) then ' Set the fsmo holder to this domain controller. objInfra.Put fSMORoleOwner, strDsServiceName objInfra.SetInfo ' Read the fsmo holder back. set objInfra = GetObject(LDAP:/ & strInfraDN) Wscript.Echo infra fsmo changed to: & objInfra.fsmoroleowner End ifEnd if
You can use tools such as the LDP tool, the Active Directory Service Interfaces (ADSI) Edit tool, and the ldifde tool to perform these queries. For example, the following query uses the Idifde tool:
This query returns the infrastructure master role owner for the DC=DomainDnsZones,DC=contoso,DC=com partition to the Infra_DomainDNSZones.ldf file.
Note You can run the Adprep /rodcprep command multiple times without harming the forest. Operations that were completed in earlier executions of the rodcprep command are not repeated.
APPLIES TO
| • | Windows Server 2008 for Itanium-Based Systems |
| • | Windows Server 2008 Datacenter |
| • | Windows Server 2008 Enterprise |
| • | Windows Server 2008 Datacenter without Hyper-V |
| • | Windows Server 2008 Enterprise without Hyper-V |
| • | Windows Server 2008 Standard without Hyper-V |
| • | Windows Server 2008 Standard |
Keywords:Â |
kbtshoot kbprb KB949257 |
Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Back to the top
Leave a Reply