Wednesday, August 28, 2013

Exchange 2010 bug not removing mailboxes after migration to an new database

While moving mailboxes from one database to another the move request finishes with a warning: Warning: Failed to clean up the source mailbox after the move. Error details: MapiExceptionUnexpectedMailboxState: Unable to delete mailbox. (hr=0x80004005, ec=2634) You will see the mailbox is disconnected but won't delete. To remove the mailbox use exchange powershell and enter these commands: $aa=Get-MailboxStatistics -Database Mailbox database name| where {$_.DisconnectReason -eq “SoftDeleted”} $aa | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted}

Wednesday, August 14, 2013

Limit Exchange 2010 memory use

ADSIedit.msc Select known naming context and pick Configuration Configuration-Services-MS Exchange-ORG NAME-Admin groups-ADMIN GROUP-Servers-SERVERNAME-Info Store Right click the info store and choose properties and scroll down to find msExchESEParamCacheSizeMax and msExchESEParamCacheSizeMin 1GB is 32768, multiply that by the number of GB you want for min and max. Example 4GB min 32768 8GB max 262144 This is different than exchange 2007 1gb is 131072

Friday, August 9, 2013

Enabe mailbox auditing Exchange 2010

Set-Mailbox -Identity User2 -AuditEnabled $true Then configure what you want to audit: Set-Mailbox -Identity user2 -AuditAdmin copy,MoveToDeletedItems,move,update,folderbind,messagebind -AuditOwner Update,Move,MoveToDeletedItems,SoftDelete,HardDelete -AuditDelegate Update,MoveToDeletedItems,SoftDelete,HardDelete,SendAs,Create -AuditEnabled $true Then use exchange control panel to search the logs: https://yourmail.server.com/ecp