I am trying to install Exchange 2010 on a fresh install of Server 2008. I believe I have all of the server roles and features configured properly, however I am getting this error:
Summary: 12 item(s). 0 succeeded, 1 failed. Elapsed time: 00:04:07
Organization Preparation Failed
Error: The following error was generated when "$error.Clear();
$acceptedDomains = @{};
Get-AcceptedDomain | foreach {
$domainName = $_.DomainName.ToString();
if ($acceptedDomains.Contains($domainName)) {
Write-ExchangeSetupLog -Warning "Duplicate AcceptedDomain found. '$($acceptedDomains[$domainName])' and '$($_.Name)' both reference domain '$domainName'";
} else {
$acceptedDomains.Add($domainName, $_.Name);
};
};
function getSmtpTemplates ([string]$property)
{
$input |
Select-Object -ExpandProperty $property |
Where-Object {$_.PrefixString -eq "SMTP"} |
Foreach-Object {$_.AddressTemplateString -replace ".*@", ""};
}
function addDomains ([Microsoft.Exchange.Data.Directory.SystemConfiguration.AcceptedDomainType]$domainType)
{
$domain = $null;
$input |
Where-Object {-not $acceptedDomains.ContainsKey($_)} |
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.ContainsValue($name) ) {$name = [System.Guid]::NewGuid().ToString()};
new-AcceptedDomain -Name:$name -DomainName:$domain -DomainType:$domainType;
$acceptedDomains[$domain.ToString()] = $name;
};
}
$emailAddressPolicies = Get-EmailAddressPolicy;
$emailAddressPolicies | getSmtpTemplates "NonAuthoritativeDomains" | addDomains "InternalRelay";
$emailAddressPolicies | getSmtpTemplates "EnabledEmailAddressTemplates" | addDomains "Authoritative";
" was run: "The property value is invalid. The value can't contain leading or trailing whitespace. Property Name: Name".
The property value is invalid. The value can't contain leading or trailing whitespace. Property Name: Name Elapsed Time: 00:04:07
Any help would be greatly appreciated!
In Exchange 2003, open Exchange System Manager, navigate to Recipients > Recipient Policies, locate the Recipient Policy (other than the Default) which has a trailing white-space. Right click the policy and choose Rename, remove the white-space after its name.
This trailing white-space is what's causing this issue.
This was a known issue in Exchange 2007, where the DN in one of your recipient policies contained a rogue whitespace.
Check out this http://technet.microsoft.com/en-us/library/dd233089(EXCHG.80).aspx and see what's in your policies using ADSIedit.