[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1183
  • Last Modified:

prepareAD fails

I have a root domain that contains domain controllers and a child domain that contains all other network objects including my Exchange 2003 server. When try to prepare the topology for an Exchange 2010 upgrade the "setup /p /on:<org name> fails with the following:

Organization Preparation         ......................... FAILED
     The following error was generated when "$error.Clear(); $acceptedDomains =
@{}; Get-AcceptedDomain | foreach { $domainName = $_.DomainName.ToString(); if (
$acceptedDomains.Contains($domainName)) { Write-ExchangeSetupLog -Warning "Dupli
cate AcceptedDomain found. '$($acceptedDomains[$domainName])' and '$($_.Name)' b
oth reference domain '$domainName'"; } else { $acceptedDomains.Add($domainName,
$_.Name); }; }; function getSmtpTemplates ([string]$property) { $input | Select-
Object -ExpandProperty $property | Where-Object {$_.PrefixString -eq "SMTP"} | F
oreach-Object {$_.AddressTemplateString -replace ".*@", ""}; } function addDomai
ns ([Microsoft.Exchange.Data.Directory.SystemConfiguration.AcceptedDomainType]$d
omainType) { $domain = $null; $input | Where-Object {-not $acceptedDomains.Conta
insKey($_)} | Where-Object {[Microsoft.Exchange.Data.SmtpDomainWithSubdomains]::
TryParse($_, [ref] $domain)} | Foreach-Object { $name = $domain.ToString(); if (
$name.Length -gt 64) { $name = $name.Substring(0, 64) }; if ($acceptedDomains.Co
ntainsValue($name) ) {$name = [System.Guid]::NewGuid().ToString()}; new-Accepted
Domain -Name:$name -DomainName:$domain -DomainType:$domainType; $acceptedDomains
[$domain.ToString()] = $name; }; } $emailAddressPolicies = Get-EmailAddressPolic
y; $emailAddressPolicies | getSmtpTemplates "NonAuthoritativeDomains" | addDomai
ns "InternalRelay"; $emailAddressPolicies | getSmtpTemplates "EnabledEmailAddres
sTemplates" | addDomains "Authoritative";" was run: "The e-mail address policy o
bject must have exactly one primary e-mail address with the prefix "GWISE". Prop
erty Name: ".

I previously ran the setup /pl on both domains successfully and the /ps on the schema master. I tired to manually run the PrepareAll Domains, but got an error says that PrepareAD had not yet been run.

The only thing I noted in the error was the message about "duplicate AcceptedDomain found". Any ideas?
0
J-Kent
Asked:
J-Kent
  • 2
  • 2
1 Solution
 
J-KentAuthor Commented:
Note: and yes, of course, there are multiple DC's in the child domain as well.
0
 
AkhaterCommented:
open exchange 2003 management console go to recipient policies

edit your reciepient policies you have 2 or more with GWISE delete them and keep only one
0
 
J-KentAuthor Commented:
That did it. thanks
0
 
AkhaterCommented:
Thanks for the updates and the points
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now