I selected yes and disabled the discovery mailbox however the setup failed again with the following error:
Detailed ExchangeSetupLog:
https://onedrive.live.com/redir?resid=f3743c55dc76b1ee!15331&authkey=!AJywMixo1SbCLl8&ithint=folder%2clog
Log Snippet:
[04/24/2015 13:06:27.0678] [2] Beginning processing Get-RoleGroup -Identity:'2ede7fc6-3983-4467-90fb-afdca3dfdc95' -DomainController:'OECC-DHCP.Mail.orange.k12.nj.us' -ErrorAction:'SilentlyContinue'
[04/24/2015 13:06:27.0725] [2] Searching objects "2ede7fc6-3983-4467-90fb-afdca3dfdc95" of type "ADGroup" under the root "$null".
[04/24/2015 13:06:27.0834] [2] Previous operation run on domain controller 'OECC-DHCP.Mail.orange.k12.nj.us'.
[04/24/2015 13:06:27.0834] [2] Previous operation run on domain controller 'OECC-DHCP.Mail.orange.k12.nj.us'.
[04/24/2015 13:06:27.0834] [2] Preparing to output objects. The maximum size of the result set is "1000".
[04/24/2015 13:06:27.0865] [2] Ending processing Get-RoleGroup
[04/24/2015 13:06:27.0881] [2] Active Directory session settings for 'Add-MailboxPermission' are: View Entire Forest: 'True', Configuration Domain Controller: 'OECC-DHCP.Mail.orange.k12.nj.us', Preferred Global Catalog: 'OECC-DHCP.Mail.orange.k12.nj.us',
Preferred Domain Controllers: '{ OECC-DHCP.Mail.orange.k12.nj.us }'
[04/24/2015 13:06:27.0881] [2] Beginning processing Add-MailboxPermission -DomainController:'OECC-DHCP.Mail.orange.k12.nj.us' -WarningAction:'SilentlyContinue' -Identity:'Mail.orange.k12.nj.us/Users/DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}'
-User:'Mail.orange.k12.nj.us/Microsoft Exchange Security Groups/Discovery Management' -AccessRights:'FullAccess'
[04/24/2015 13:06:27.0912] [2] Searching objects "Mail.orange.k12.nj.us/Users/DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}" of type "ADUser" under the root "Mail.orange.k12.nj.us/Users".
[04/24/2015 13:06:27.0928] [2] Previous operation run on global catalog server 'OECC-DHCP.Mail.orange.k12.nj.us'.
[04/24/2015 13:06:27.0928] [2] Processing object "Mail.orange.k12.nj.us/Users/DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}".
[04/24/2015 13:06:27.0928] [2] Checking if the specified user or group "Mail.orange.k12.nj.us/Microsoft Exchange Security Groups/Discovery Management" is a Security Identifier.
[04/24/2015 13:06:27.0928] [2] Checking if the specified user or group "Mail.orange.k12.nj.us/Microsoft Exchange Security Groups/Discovery Management" is a SAM account or a foreign forest account.
[04/24/2015 13:06:46.0413] [2] [ERROR] Unexpected Error
[04/24/2015 13:06:46.0413] [2] [ERROR] Couldn't resolve the user or group "Mail.orange.k12.nj.us/Microsoft Exchange Security Groups/Discovery Management." If the user or group is a foreign forest principal, you must have
either a two-way trust or an outgoing trust.
[04/24/2015 13:06:46.0460] [2] [ERROR] The trust relationship between the primary domain and the trusted domain failed.
[04/24/2015 13:06:46.0460] [2] Ending processing Add-MailboxPermission
[04/24/2015 13:06:46.0460] [1] The following 1 error(s) occurred during task execution:
[04/24/2015 13:06:46.0460] [1] 0. ErrorRecord: Couldn't resolve the user or group "Mail.orange.k12.nj.us/Microsoft Exchange Security Groups/Discovery Management." If the user or group
is a foreign forest principal, you must have either a two-way trust or an outgoing trust.
[04/24/2015 13:06:46.0460] [1] 0. ErrorRecord: Microsoft.Exchange.Data.Common.LocalizedException: Couldn't resolve the user or group "Mail.orange.k12.nj.us/Microsoft Exchange Security Groups/Discovery Management."
If the user or group is a foreign forest principal, you must have either a two-way trust or an outgoing trust. ---> System.SystemException: The trust relationship between the primary domain and the trusted domain failed.
at System.Security.Principal.NTAccount.TranslateToSids(IdentityReferenceCollection sourceAccounts, Boolean& someFailed)
at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess)
at System.Security.Principal.NTAccount.Translate(Type targetType)
at Microsoft.Exchange.Configuration.Tasks.SecurityPrincipalIdParameter.GetUserSidAsSAMAccount(SecurityPrincipalIdParameter user, TaskErrorLoggingDelegate logError, TaskVerboseLoggingDelegate logVerbose)
--- End of inner exception stack trace ---
[04/24/2015 13:06:46.0491] [1] [ERROR] The following error was generated when "$error.Clear();
$name = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxUniqueName;
$dispname = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxDisplayName;
$dismbx = get-mailbox -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1;
if( $dismbx -ne $null)
{
$srvname = $dismbx.ServerName;
if( $dismbx.Database -ne $null -and $RoleFqdnOrName -like "$srvname.*" )
{
Write-ExchangeSetupLog -info "Setup DiscoverySearchMailbox Permission.";
$mountedMdb = get-mailboxdatabase $dismbx.Database -status | where { $_.Mounted -eq $true };
if( $mountedMdb -eq $null )
{
Write-ExchangeSetupLog -info "Mounting database before stamp DiscoverySearchMailbox Permission...";
mount-database $dismbx.Database;
}
$mountedMdb = get-mailboxdatabase $dismbx.Database -status | where { $_.Mounted -eq $true };
if( $mountedMdb -ne $null )
{
$dmRoleGroupGuid = [Microsoft.Exchange.Data.Directory.Management.RoleGroup]::DiscoveryManagementWkGuid;
$dmRoleGroup = Get-RoleGroup -Identity $dmRoleGroupGuid -DomainController $RoleDomainController -ErrorAction:SilentlyContinue;
if( $dmRoleGroup -ne $null )
{
Add-MailboxPermission $dismbx -User $dmRoleGroup.Identity -AccessRights FullAccess -DomainController $RoleDomainController
-WarningAction SilentlyContinue;
}
}
}
}
" was run: "Couldn't resolve the user or group "Mail.orange.k12.nj.us/Microsoft Exchange Security Groups/Discovery Management." If the user or group is a foreign forest
principal, you must have either a two-way trust or an outgoing trust.".
[04/24/2015 13:06:46.0491] [1] [ERROR] Couldn't resolve the user or group "Mail.orange.k12.nj.us/Microsoft Exchange Security Groups/Discovery Management." If the user or group is a foreign forest principal, you must have
either a two-way trust or an outgoing trust.
[04/24/2015 13:06:46.0491] [1] [ERROR] The trust relationship between the primary domain and the trusted domain failed.
[04/24/2015 13:06:46.0491] [1] [ERROR-REFERENCE] Id=MailboxServiceControlLast___05b3bbd421504e0c93fefa6d5d1ae590 Component=EXCHANGE14:\Current\Release\Shared\Datacenter\Setup
[04/24/2015 13:06:46.0491] [1] Setup is stopping now because of one or more critical errors.
[04/24/2015 13:06:46.0491] [1] Finished executing component tasks.
[04/24/2015 13:06:46.0522] [1] Ending processing Install-MailboxRole