Migrating mailbox from Exchange 2007 SP2/SP3 to Exchange 2010 SP1

Reading Time: < 1 minute

When you attempt to migrate a mailbox stored on Exchange 2007 to Exchange 2010, you receive the below errors:

Error occurred in the step: Preparing mailbox to be moved. Failed to copy basic mailbox information with error:  A duplicate mailbox was found due to problems during a Move Mailbox procedure. The duplicate mailbox has been deleted.
Try again later., error code: -1056749241

and

Error occurred in the step: Opening destination mailbox. An internal processing error due to a bad parameter has occurred.
Try restarting the Exchange System Manager or the Microsoft Exchange Information Store service, or both., error code: -1056696538

Resolution:
Logon to Exchange 2010 server and move the mailbox from there. Works without errors.

Setup has detected that Forefront Security For exchange server is running

Reading Time: < 1 minute

When you install Exchange 2007 Service pack 2 or 3 on a server running Forefront for Exchange, you will encounter the below error:

Error: Setup has detected that Forefront Security For exchange server is running on the server and has to be disabled before Exchange Server 2007 is upgraded.

Before you can apply a service pack for exchange 2007, you need to carry out the below tasks:

1) Stop the services listed below
FSCController
Microsoft Exchange Transport
Microsoft Exchange Information Store

2) Next, open a command prompt. If running Windows 2008 server, right click command and run as administrator.

3) In the command prompt, change the current directory to C:\Program Files (x86)\Microsoft Forefront Security\Exchange Server

 4) Type fscutility /disable   
The command above will start to remove dependencies and the final result should be Status: Microsoft Forefront Server Security NOT integrated

5)  Now, install your Exchange service pack

6) When the installation is complete, you must reenable Forefront Security for exchange. To do this, stop the below services.
Microsoft Exchange Transport
Microsoft Exchange Information Store

7) Open a command prompt as you did in step 2 above..

8.) Change the current directory as you did in step 3 above

9) Type fscutility /enable

10) Start the below services
FSCController
Microsoft Exchange Transport
Microsoft Exchange Information Store

Remove all disconnected mailboxes Exchange 2007

Reading Time: < 1 minute

To remove all disconnected Exchange 2007 mailboxes one by one or the option to remove them all at once, launch Exchange 2007 powershell comand and run the below command titled ‘Command to remove disconnected Exchange 2007 mailboxes’.   (Amend server and database name as required)

Before the removal of each mailbox you will be prompted to confirm deletion, choose the option to delete one by one. So after running the command type ‘y’ and press enter, check that your disconnected mailbox count reduces, then you will be prompted to confirm deletion again, do the same again. You could do them all at once, but I prefer to do one at a time.

Command to remove disconnected Exchange 2007 mailboxes:

Get-MailboxStatistics -database “servername here\mailbox database name” | where {$_.disconnectdate -ne $null} | foreach {Remove-mailbox -database $_.database -storemailboxidentity $_.mailboxguid}

Command to list all Exchange 2007 disconnected mailboxes:

Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid

Disconnected mailbox folder empty?

If the disconnected mailbox folder within Exchange 2007 is empty, run the below command (replace database name as required)

Clean-MailboxDatabase “Database Name”

To confirm your mail box database name, run the below command:

get-mailbox database

Maximum size of Exchange 2003 database

Reading Time: < 1 minute

By default, the default size of a database on exchange 2003 is 16GB.

With Exchange 2003 service pack 2 installed the default limit is 18GB but can be extended up to 75GB per database for the standard version of Exchange 2003.
This can be done by adding a registry key.  See: https://cloudbuild.co.uk/?p=473

The enterprise version of Exchange 2003 allows upto 8TB per database