Every time I’ve done a migration from Exchange 2003 to Exchange 2007 or 2010 one or two mailboxes for their own unknown reason decide they wish to come over as a linked mailbox. Now a linked mailbox is not needed unless you’re going to access it across a different trusted forest. So why when you only have a single forest, single domain environment do these keep happening? If anyone genuinely knows the reason I’d love to know!
Originally it appeared you had to detach the mailbox from the account and associate it by hand, however now there appears to be an easier way I’ve come across but most guides do not quite explain it properly which initially makes you think the command has failed.
The first command is this which sets the linked account to nothing therefore removing the linked mailbox status.
[PS] C:\Windows\system32>Set-User -Identity user@domain.local -LinkedMasterAccount $null
However when I run it I see this error!
A positional parameter cannot be found that accepts argument ‘-LinkedMasterAccount’.
+ CategoryInfo : InvalidArgument: (:) [Set-User], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Set-User
So then to verify I checked with this command:
[PS] C:\Windows\system32>Get-User -Identity “user@domain.local“
Name RecipientType
—- ————-
User UserMailbox
Here you will see in fact despite the big error saying no you’ve failed, you have actually managed to achieve what you set out to! So then being a happy little bunny you pop back over to your GUI list of users and find that wait no! They console has lied to you, the Linked Mailbox still exists, so somebody is lying here!
So here is the way I originally mentioned to complete this task.
1) From your Exchange Management Console view the list of Mailboxes under “Recipient Configuration > Mailbox”
2) In the properties make a note of all the aliases and e-mail addresses the problematic user has as this will be lost!
3) Right click the problematic account and choose the option disable.
4) Under Recipients Configuration > Disconnected Mailboxes you will find the users Mailbox. If you do not see it currrently run the following power shell command which will update the list (sounds like a bad command to run but don’t worry!)
Clean-MailboxDatabase “Database Name”
5) Right click the Mailbox under Disconnected Mailboxes and then you can attach it to the previous user account as a User Mailbox!
Much easier way to remember how to do it than the power shell command also in my opinion.