delete email prior to ex2013 migration

I am migrating to exchange 2013 from ex2007sp3.  Prior to moving mailboxes to the ex13 server, I have been tasked with deleting messages from the Exch2007sp3 database older than 90 days. 

This is my pshell cmd so far:

Get-Mailbox -Database "private information store" | Export-Mailbox -EndDate 1/1/2015 -ExcludeFolders "\Calendar" -DeleteContent -BadItemLimit 100

I plan to change the Delete Item Retention to 0 days so that the messages are truly gone.

Does anyone have a better suggestion?

 Thanks

April 2nd, 2015 11:59am

In Exchange 2007, If you want to recover deleted mailboxes from exchange 2013, By default deleted email items is retained for x days and deleted the mailboxes for 90 days and settings are set on database level. More information, please refer to the links:

http://support.microsoft.com/kb/274343

http://technet.microsoft.com/en-us/library/aa997182%28v=EXCHG.80%29.aspx

Also, could you please brief here about your retention policy ?

Here is step-wise procedure for a quickly recovery of deleted items in exchange 2007 :http://technet.microsoft.com/en-us/magazine/dd547067.aspx

Moreover, you could try automated exchange mailbox recovery tool ( http://www.exchangemailboxrecovery.co.uk/ )that allow restore permanently deleted mailboxes from exchange server. You can easily restore all mailboxes database in few seconds.

Free Windows Admin Tool Kit Click here and download it now
April 3rd, 2015 3:36am

Hi,

If the items which are older than 90 days have been deleted for all mailboxes in Exchange 2007, we can directly move the mailbox to Exchange 2013. Generally, the deleted items are retained in the mailbox database until the deleted items retention period expires, which is 14 days by default. And the deleted items would not be moved to Exchange 2013 if you migrate the mailbox from Exchange 2007 to Exchange 2013.

If you still want to change the set the Delete Items Retention for a mailbox in Exchange 2007, we can run:

Set-MailboxDatabase <database_name> -DeletedItemRetention 0.00:00:00

For more information about this, please refer to:

https://technet.microsoft.com/en-us/library/aa997206(v=exchg.80).aspx

Regards,

April 3rd, 2015 5:44am

This is the cmd I am running to delete messages from a specific mail database :

Get-Mailbox -Database "private information store" | Export-Mailbox -ExcludeFolders "\Calendar" -EndDate 1/12/2015 -DeleteContent

However, when I run the cmd it just goes back to the prompt.  Heres the log entry:

[4/13/2015 9:33:56 AM] [0] Executing Command: 'Get-Mailbox -Database "private information store" | Export-Mailbox -ExcludeFolders "\Calendar" -EndDate 1/12/2015 -DeleteContent'

[4/13/2015 9:33:57 AM] [0] Administrator Active Directory session settings are:  View Entire Forest: 'False', Default Scope: 'domain1.com', Configuration Domain Controller: 'DC.domain2.com',

[4/13/2015 9:33:57 AM] [0] Searching objects "mail.domain1.com\private information store" of type "MailboxDatabase" under the root "$null".

[4/13/2015 9:33:58 AM] [0] Previous operation run on domain controller 'DC.domain2.com'.

[4/13/2015 9:33:58 AM] [0] Searching objects of type "ADUser" with filter "(&((RecipientType Equal UserMailbox)(Database Equal mail\SG1\Private Information Store)))", scope "SubTree" under the root "$null".

[4/13/2015 9:33:58 AM] [0] Previous operation run on domain controller 'dc.domain1.com'.

[4/13/2015 9:33:58 AM] [0] Preparing to output objects. Maximum result set size "1000".

[4/13/2015 9:33:58 AM] [0] Ending processing.

[4/13/2015 9:33:58 AM] [0] Ending processing.

The mail server is in a separate domain from where the user accounts reside.  I am trying to run this from the mail server.  The account I am logged in with has full rights on all mailboxes.

Free Windows Admin Tool Kit Click here and download it now
April 13th, 2015 9:53am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics