When best practice analyzer i get an error saying that mailbox role is not setup correctly please run setup again, after running setup i get the following errors ( See setup log below)
[11/27/2012 13:48:41.0436] [2] Processing object "PHOENIX.PRS/Users/DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}".
[11/27/2012 13:48:41.0467] [2] [ERROR] Database is mandatory on UserMailbox. Property Name: Database
[11/27/2012 13:48:41.0530] [2] [ERROR] Unexpected Error
[11/27/2012 13:48:41.0530] [2] [ERROR] Database is mandatory on UserMailbox. Property Name: Database
[11/27/2012 13:48:41.0561] [2] [WARNING] The object PHOENIX.PRS/Users/DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852} has been corrupted, and it's in an inconsistent state. The following validation errors happened:
[11/27/2012 13:48:41.0561] [2] [WARNING] Database is mandatory on UserMailbox.
[11/27/2012 13:48:41.0561] [2] [WARNING] Database is mandatory on UserMailbox.
[11/27/2012 13:48:41.0561] [2] Ending processing get-mailbox
[11/27/2012 13:48:41.0561] [2] Ending processing set-mailbox
[11/27/2012 13:48:41.0608] [2] Active Directory session settings for 'Get-Mailbox' are: View Entire Forest: 'True', Configuration Domain Controller: 'EXCHANGE.PHOENIX.PRS', Preferred Global Catalog: 'EXCHANGE.PHOENIX.PRS', Preferred Domain Controllers: '{ EXCHANGE.PHOENIX.PRS
}'
[11/27/2012 13:48:41.0608] [2] Beginning processing get-mailbox -Filter:'name -eq $name' -IgnoreDefaultScope:'True' -ResultSize:'1'
[11/27/2012 13:48:41.0623] [2] Searching objects of type "ADUser" with filter "(&((|((RecipientTypeDetails Equal RoomMailbox)(RecipientTypeDetails Equal EquipmentMailbox)(RecipientTypeDetails Equal LegacyMailbox)(RecipientTypeDetails Equal LinkedMailbox)(RecipientTypeDetails
Equal UserMailbox)(RecipientTypeDetails Equal DiscoveryMailbox)(RecipientTypeDetails Equal SharedMailbox)))(Name Equal DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852})))", scope "SubTree" under the root "$null".
[11/27/2012 13:48:41.0670] [2] Previous operation run on global catalog server 'EXCHANGE.PHOENIX.PRS'.
[11/27/2012 13:48:41.0670] [2] Preparing to output objects. The maximum size of the result set is "1".
[11/27/2012 13:48:41.0733] [2] [WARNING] The object PHOENIX.PRS/Users/DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852} has been corrupted, and it's in an inconsistent state. The following validation errors happened:
[11/27/2012 13:48:41.0733] [2] [WARNING] Database is mandatory on UserMailbox.
[11/27/2012 13:48:41.0733] [2] [WARNING] Database is mandatory on UserMailbox.
[11/27/2012 13:48:41.0733] [2] Ending processing get-mailbox
[11/27/2012 13:48:41.0748] [1] The following 2 error(s) occurred during task execution:
[11/27/2012 13:48:41.0748] [1] 0. ErrorRecord: Database is mandatory on UserMailbox. Property Name: Database
[11/27/2012 13:48:41.0748] [1] 0. ErrorRecord: Microsoft.Exchange.Data.DataValidationException: Database is mandatory on UserMailbox. Property Name: Database
[11/27/2012 13:48:41.0748] [1] [ERROR] The following error was generated when "$error.Clear();
if ($RoleIsDatacenter -ne $true)
{
if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)
{
# upgrade the discovery mailboxes to R5 version, this will fix the RecipientDisplayType property of the discovery mailbox which was wrong in R4.
get-mailbox -RecipientTypeDetails DiscoveryMailbox -DomainController $RoleDomainController | where {$_.IsValid -eq $false} | set-mailbox -DomainController $RoleDomainController
$name = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxUniqueName;
$dispname = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxDisplayName;
$mbxs = @( get-mailbox -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );
if ( $mbxs.length -eq 0)
{
$dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
if($dbs.Length -ne 0)
{
$mbxUser = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);
if ($mbxUser.Length -ne 0)
{
enable-mailbox -Discovery -identity $mbxUser[0] -DisplayName $dispname -database $dbs[0].Identity;
}
}
}
}
else
{
write-exchangesetuplog -info "Skipping creating Discovery Search Mailbox because of insufficient permission."
}
}
" was run: "Database is mandatory on UserMailbox. Property Name: Database".
[11/27/2012 13:48:41.0748] [1] [ERROR] Database is mandatory on UserMailbox. Property Name: Database
[11/27/2012 13:48:41.0748] [1] 1. ErrorRecord: Database is mandatory on UserMailbox. Property Name: Database
[11/27/2012 13:48:41.0748] [1] 1. ErrorRecord: Microsoft.Exchange.Data.DataValidationException: Database is mandatory on UserMailbox. Property Name: Database
[11/27/2012 13:48:41.0748] [1] [ERROR] The following error was generated when "$error.Clear();
if ($RoleIsDatacenter -ne $true)
{
if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)
{
# upgrade the discovery mailboxes to R5 version, this will fix the RecipientDisplayType property of the discovery mailbox which was wrong in R4.
get-mailbox -RecipientTypeDetails DiscoveryMailbox -DomainController $RoleDomainController | where {$_.IsValid -eq $false} | set-mailbox -DomainController $RoleDomainController
$name = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxUniqueName;
$dispname = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxDisplayName;
$mbxs = @( get-mailbox -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );
if ( $mbxs.length -eq 0)
{
$dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
if($dbs.Length -ne 0)
{
$mbxUser = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);
if ($mbxUser.Length -ne 0)
{
enable-mailbox -Discovery -identity $mbxUser[0] -DisplayName $dispname -database $dbs[0].Identity;
}
}
}
}
else
{
write-exchangesetuplog -info "Skipping creating Discovery Search Mailbox because of insufficient permission."
}
}
" was run: "Database is mandatory on UserMailbox. Property Name: Database".
[11/27/2012 13:48:41.0748] [1] [ERROR] Database is mandatory on UserMailbox. Property Name: Database
[11/27/2012 13:48:41.0748] [1] [ERROR-REFERENCE] Id=SystemAttendantDependent___590e51a8a98846d3a7fa8ddcc5472c74 Component=EXCHANGE14:\Current\Release\PIM Storage\Discovery
[11/27/2012 13:48:41.0748] [1] Setup is stopping now because of one or more critical errors.
[11/27/2012 13:48:41.0748] [1] Finished executing component tasks.
[11/27/2012 13:48:42.0264] [1] Ending processing Install-MailboxRole
Any ideas much appreciated