Link to home
Start Free TrialLog in
Avatar of mroger_au
mroger_au

asked on

Move Linked Mailbox back to User account Forest

Hi,  I am looking for some assistance with the below scenario.

Forest A - Exchange 2010
Forest B - Exchange 2007

2-Way Forest trust and both forests have separate users in each forest. There are also some linked mailbox's in Forest B with the Master User Account in Forest A.

A PowerShell script is set up for the GAL Sync, and each forest is able to see contacts for each organisation including contacts for the linked mailbox's.

I am having trouble moving the Linked Mailbox from 2007 Forest back to the account forest. Do I need to use the Prepare-MoveRequest.ps1 script or can I do a straight move request?

I have tried running both and I receive errors. I can provide the exact commands I am running after I get an understanding of the exact process I should be using to do this.

Thanks in advance
Avatar of suriyaehnop
suriyaehnop
Flag of Malaysia image

Let say you which to move User A (Linked Mailbox). Could you verify if mail contact for User A appear in Forest A (where Master reside). I believe there is User A mail contact since GAL Sync.

To move mailbox User A back to Forest A. Try to delete mail contact of User A in Forest A, once confirm done, try to move mailbox again.
Avatar of mroger_au
mroger_au

ASKER

Thanks, after deleting the Mail Contact I finally worked out the command to move the mailbox back to the 2007 forest.

New-MoveRequest -Identity "user01@foresta.com" -RemoteLegacy 
-RemoteTargetDatabase "MBX\First Storage Group\Mailbox Database" 
-RemoteGlobalCatalog "gc.forestb.com" -RemoteCredential $remote 
-TargetDeliveryDomain forestb.com

Open in new window


You also need to make sure that you can resolve the target server by NETBIOS name as well as FQDN otherwise the command will fail.

Now that the Linked mailbox has moved back I have another problem in that Outlook does not automatically update to the new server. I have run the Export-AutodiscoveryConfig command in both forests and can see the SCP created in ADSIedit.

The Autodiscover appears to work for new accounts if I enter the email address and password and hit next, it doesn't work by automatically detecting the account like it would if the account was in it's own forest.

I also appear to have to remove and re-add the Outlook profile before I can get it to point to the new server for Mailbox Moves cross-forest. Can anyone help with the Outlook Autoconfiguration/Autodiscover?
More information found from another Experts Exchange thread.

https://www.experts-exchange.com/questions/27403059/Prepare-MoveRequest-UseLocalObject-on-existing-AD-accounts.html

Enable-MailUser -Identity Flo2 -ExternalEmailAddress flo2@domain.com

Copy the following Attributes from the source mailbox using ADSIedit
MSExchMailboxGuid
proxy address


Is anyone able to help me write a powershell script to do this?
ASKER CERTIFIED SOLUTION
Avatar of mroger_au
mroger_au

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Worked it out, tested OK.