Moving a Exchange 2007/2010 mailbox to another user

Moving an Exchange 2010 mailbox to a new user

You will need to disconnect the user from the mailbox and then connect the new user account. This is very easy in PowerShell.

  1. Lookup which storage group/mailbox store the user is connected at this moment (if there is more than 1 storage group) and document
  2. Disable the user for Exchange (command-shell): Disable-Mailbox -Identity “Full Username”
  3. This will remove all Exchange properties on the User account in Active Directory (you will be prompted to delete all info). The mailbox will not be deleted. The connection between the account and mailbox will be removed.
  4. Reconnect the mailbox to the account.Use the command-shell :
    Connect-Mailbox -Identity “Lastname, Firstname” -Database “ServerStorage GroupMailboxstore” -User “Domainusername”
  5. Check the properties of the mailbox.


You may need to run a Clean-MailboxDatabase prior to reconnecting the mailbox to the new user

To refresh the disconnected mailboxes in Exchange 2010 databases – Clean-Mailboxdatabase

For Specific Database –

Get-MailboxDatabase “Dbname” | Clean-mailboxdatabase

For all Databases –

Get-MailboxDatabase | Clean-mailboxdatabase

To refresh the disconnected mailboxes in Exchange 2013 databases – Update-StoreMailboxState

For Specific Database –

Get-MailboxStatistics -Database “Dbname” | Where { $_.DisconnectReason -ne $null } |ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false }

For all Databases –

Get-MailboxDatabase | foreach{Get-MailboxStatistics -Database $_.identity} | Where { $_.DisconnectReason -ne $null } | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false } -Verbose


Leave a Reply