Exchange 2007 – Convert Legacy Mailbox to User Mailbox

When you move mailboxes from Exchange Server 2003 to Exchange Server 2007 you will end up with Legacy Mailboxes.

To convert these mailboxes you need to run the following command in a Exchange powershell window:

Set-Mailbox -id <mailbox alias> -ApplyMandatoryProperties

If, in the process, you get this error:

“Set-Mailbox : The operation could not be performed because object ‘<alias>’ could not be found on domain controller ‘<FQDN of domain controller>’.
At line:1 char:12
+ Set-Mailbox  <<<< -id <alias> -ApplyMandatoryProperties”

That might happen because you are running the command in a Domain Controller not of the same domain as the mailbox owner.

In that case, you should run the command in a Domain Controller of the mailbox owner domain.

For that you can use these commands:

$adminsessionadsettings.defaultscope = “<Mailbox owner domain>”

$adminsessionadsettings.preferreddomaincontrollers = “<Mailbox owner domain domain controller>”

After that. just run the first command again.

Exchange 2007 – Converting a Linked Mailbox to a User Mailbox

During an Exchange migration I found out that some of the mailboxes were listed as Lined Mailboxes, instead of User Mailboxes.
If you have these, you might have some issues giving certain permissions to those mailboxes.
To go around this issue I followed the process I found here.


So, to cut it short, the process is basically this:

Select the Linked Mailbox, right click it and Disable the mailbox. You will get a message indicating that the Exchange proprieties will be removed without removing the mailbox that you have to accept.

Then, open Exchange Management Shell and run the following command:

Clean-MailboxDatabase <mailbox database name>
Finally, just connect the mailbox with the original account by right clicking it and select “Connect”.
If you prefer, you can also use the Exchange Management Shell to do the entire process by using the commands:
Disable-Mailbox –Identity UserName
Connect-Mailbox –Identity “Name, User” –Alias UserName –Database “Database Name”
To verify the changes to the mailbox you can also use the cmdlet:
Get-Mailbox -Identity UserName |FL DisplayName,Database,RecipientTypeDetails

Exchange 2003 – Cannot access System Manager (throws MAPI32.dll Q266418 error Popup)

I found this problem opening Exchange 2003 System Manager. When opening i I got the following error:

“Exchange detected that “C:windowssystem32mapi32.dll” is not the correct version required to
run Exchange System Manager or Exchange Server 2003. This may cause failures in Exchange System Manager,
affect availability of your server, or both. For more information see Microsoft Knowledge Base article
Q266418 at”

To get around this I renamed the windowssystem32mapi32.dll, took the MAPI32.DLL from the Exchange
server CD-ROM (from the setupi386exchangebin folder) and copied it in to the windowssystem32 folder.