Solved

How to "empty" the data from a mailbox without deleting/re-creating

Posted on 2008-10-02
6
275 Views
Last Modified: 2010-04-21
We are running Exchange 2007 w/sp1.  My question is this -

We have training email/network accounts used for - well, training.  After a training session, I'd like to be able to "empty" them of data, to make them blank and ready for the new training session.  Something like "empty mailbox" or something?

Just want to clear out the mailboxes so that the "test data" from folks training in them is gone and give the trainer a pristine environment again.

Is there a script that will achieve this?  An easier way?

Thanks.
0
Comment
Question by:jenmilks
  • 3
  • 2
6 Comments
 
LVL 29

Accepted Solution

by:
mass2612 earned 125 total points
ID: 22629820
Hi,

Your best bet from the a script is probably export-mailbox. You can export the contents of a mailbox to PST and also select to delete the data using the switches -DeleteContent or -DeleteAssociatedMessages.

The other option is to setup and configure the Messaging Records Management so that you can automatically delete the data at a certain time.

Understanding Messaging Records Management
http://technet.microsoft.com/en-us/library/bb310756.aspx

Exchange 2007 SP1 Mailbox Management Features - Part 1: Importing and Exporting Mailbox data to and from PST files
http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/exchange-2007-sp1-mailbox-management-part1.html
0
 
LVL 23

Expert Comment

by:Malli Boppe
ID: 22631297
You can use exmerge to delete the emails.I have done this in exchange 2003. i am sure you should be able to delete them from exchange 2007 as well.
http://www.petri.co.il/delete_messages_from_mailboxes_by_using_exmerge.htm
0
 
LVL 29

Expert Comment

by:mass2612
ID: 22632475
Exmerge is not available with 2007 its replaced by the export-mailbox command line tool. It would not surprise me if they release a supported version for 2007.
0
Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

 
LVL 23

Expert Comment

by:Malli Boppe
ID: 22633170
Microsoft making things harder  for the administrators.
0
 

Author Closing Comment

by:jenmilks
ID: 31502605
Thanks a lot.  I was really hoping it was easier than that.  I'd rather go the MRM route than install Exchange on a 32-bit OS.  That just seems - short sighted on Microsoft's part.

I do appreciate the responses.
0
 
LVL 23

Expert Comment

by:Malli Boppe
ID: 22655054
You still can use exmerge with exchange 2007
http://www.exchangeinbox.com/article.aspx?i=88
0

Featured Post

Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Join & Write a Comment

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

743 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

9 Experts available now in Live!

Get 1:1 Help Now