Solved

Cleaning of my Exchange 2010 Mailboxes

Posted on 2013-06-02
9
250 Views
Last Modified: 2013-06-25
Hi everybody,

For maintenance purposes, I need to empty all the mailboxes of my Exchange 2010 organisation.

For confidential reasons, I need that all the cleaned mails cannot be recovered, i want them to be definitively deleted.

How can I do ?

@+

Nico
0
Comment
Question by:Admicom
  • 5
  • 3
9 Comments
 
LVL 18

Expert Comment

by:suriyaehnop
ID: 39214362
To empty all the mailboxes, you may have to user Exchange Powershell to delete the content of mailboxes.

http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/b79cd246-b12e-43cb-b62a-79a07d600295

To cleaned the mails, you can configure at Database level:

Deleted Settings:

Keep deleted items for (days) : 0
0
 
LVL 1

Author Comment

by:Admicom
ID: 39214418
Thanks !

Before to do this, how can I automatize the export to PST files for all the mailboxes ?
0
 
LVL 18

Accepted Solution

by:
suriyaehnop earned 500 total points
ID: 39214451
http://social.technet.microsoft.com/wiki/contents/articles/13908.bulk-export-mailboxes-to-pst-in-exchange-2010.aspx

Import-CSV C:\filename | foreach {New-MailboxExportRequest -Mailbox $_.name -FilePath "\\SERVER01\PSTFileShare\$($_.name).pst"}

Open in new window

0
 
LVL 1

Author Comment

by:Admicom
ID: 39214562
i dont have SP1 and it does not work. The commands seem to be unknown. Do i have to deploy it before ?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 18

Expert Comment

by:suriyaehnop
ID: 39214593
http://blogs.technet.com/b/neiljohn/archive/2011/06/07/exchange-2010-exporting-mailboxes-without-exmerge.aspx

Exchange Server 2010 SP1
With the release of Exchange Server 2010 SP1 the export-mailbox cmdlet was replaced with new-mailboxexportrequest, it has similar requirements to export-mailbox, however it does not require Outlook to be installed.

Requirements

Permissions assigned to user via RBAC
Exchange 2010 Management Tools Installed
.Net Framwork 3.5
PowerShell 3.5
Exchange Server 2010 Service Pack 1

If not SP1, you have to installed Outlook 64bit version on Exchange Mailbox  and use Export-Mailbox
0
 
LVL 1

Author Comment

by:Admicom
ID: 39214880
Thks !

In fact I'd like a script that export all the mailboxes automatically...
0
 
LVL 1

Author Comment

by:Admicom
ID: 39214954
When I try "export-mailbox" or "new-mailboxexportrequest", I have an error that tells me that the command is unknown. Would I have forgotten something ?
0
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 39214973
You really need to get your server up to date, as there are more modern commands and procedures with the later releases. RTM and SP1 are no longer supported, you need to be on 2010 SP2 or higher.

To use export-mailbox you have to be given specific permissions, being org admin or whatever is not enough. It is a specific permission. However I cannot recall what it is now as I don't retain knowledge of RTM/SP1 only commands.

Simon.
0
 
LVL 1

Author Comment

by:Admicom
ID: 39217444
Ok, great i managed to export all the mailbox.

Would you have the syntax to delete all the mails of a mailbox that are before the 1st of june 2013 for example ?
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now