Exchange mailbox re-association

We have many linked mailboxes on our exchange 2010 SP3 server that are associated to user accounts on a trusted domain.  We are collapsing the old trusted domain and we need to re-associate the linked mailboxes to user accounts on the local domain.  Is there a procedure for this?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

IvanSystem EngineerCommented:

This is how I have done migration of users from resource forest back to account forest (which is what you have).
These are some basic steps, so grab a link or two, and you should be able to do it..

1. Export ProxyAddresses attribute from Source forest users and import into Target forest.
2. Mail enable users (MEU) in target forest.
3. Import ProxyAddresses attributes into MEU
4. Use Prepare-MoveRequest.ps1  script to prepare target MEU for merging with source mailbox's
5. Migrate groups, ADMT or something..
6. Migrate mailbox's


rckollarAuthor Commented:
That's not quite what I need.  The mailboxes do not need to be migrated since they are already in the local domain.  I just need to re-associate them to an AD account in the local domain in place of their currently associate trusted domain accounts.
Jeffery HayesSystem Support Technician Commented:
connect-mailbox should work if your environment was once before MBX disabled on the local environment and then MEU on the other domain.

If this is the case you can then disabled all the Mail Enabled users and then just disable the mailboxes and then connect them back to themselves.

For example
Connect-Mailbox -Identity Jeffery.Hayes -Database 'MBX1-11' -Alias Jeffery.Hayes

That should work just to enable the local mailbox

But if that is the case then you could script this out to make life easier.

Do both Samaccountnames match the same value in the trusted domain as they do on your other local domain?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rckollarAuthor Commented:
The user accounts were different on the 2 domains.  When I try the disable and then user the connect-mailbox to reconnect the to the local domain, I get a mailbox is disabled when trying to access the box.  I checked the AD account and it is not disabled.  What could be causing that?
rckollarAuthor Commented:

You solution worked!  I just had to run the command Get-MailboxDatabase | Clean-MailboxDatabase after each re-connect.  Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.