Extracting email from an Exchange 2010 mailbox

After the huge responses I received from my previous article on how to remove an email from an Exchange 2010 mailbox, I am adding some small enhancements to the script that will allow Exchange admins to analyse the emails from another mailbox.

Email Problem:

A user has received an email that needs to be removed and/or analysed (for whatever reason).  You want to extract the email into another mailbox so you can analyse it.


Set up a new mailbox on your Exchanger server – in this case we are going to call it “EmailAnalysis”.
Create a folder in the new mailbox called “ToExamine”

Powershell Script to extract email

Using the following script, will allow you to take a copy of the emails and place them into your new mailbox “EmailAnalysis” and drop them into the “ToExamine” folder.

If there is a need to remove the emails from the original mailbox and keep a copy in your “EmailAnalysis” mailbox you can add “-DeleteContent” to the end of the script

Testing email extraction:

I sent an email to a colleague with the subject “123456789”, ran the top script above and below are the results:

mail extract
Results from the email extract script

As you can see from the results, a number of subfolders are created, one for the mailbox that the email was found in (with a time stamp of when the script was run), a subfolder called “Primary Mailbox” and another subfolder named after the location of the folder containing the original email.

This will also work for emails that are marked ‘Private’


  1. Hey there could you mind stating which blog platform you’re dealing with?
    I’m going to begin my blog soon but I’m having a difficult
    time deciding between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different
    then most blogs and I’m looking for something completely unique.

    P.S Apologies for being off-topic nevertheless i was required to ask!

  2. With havin a great deal articles do you ever come across any problems of plagorism or copyright infringement?
    My website has a lot of exclusive content I’ve either authored myself or
    outsourced but it seems a variety of it is popping it up all around the web without my permission. Have you any idea any techniques
    to assist prevent content from being scammed? I’d genuinely appreciate it.

  3. I used to be suggested this web site by my cousin. I’m not
    sure whether this post is written by means of him as nobody else understand such distinct approximately my trouble.
    You are incredible! Thanks!

  4. I am truly happy to read this website posts which carries lots of helpful facts, thanks
    for providing these kinds of data.

  5. My brother suggested I might like this website. He was totally right.
    This post truly made my day. You can’t imagine simply how much time I had spent for this info!

  6. I have read so many articles about the blogger lovers but this article is actually
    a pleasant piece of writing, keep it up.

  7. I was wondering if you ever thought of changing the structure of your site?

    Its very well written; I love what you’ve got to say.
    But maybe you could a little more in the way of content so people
    could connect with it better. You’ve got an awful lot of text for only having one or 2 images.
    Maybe you could space it out better?

  8. If you would like to improve your knowledge simply keep visiting this
    site and be updted with the most recent gossip posted here.

  9. Hiya! Quick question that’s completely off topic. Do you know how to
    make your site mobile friendly? My web site looks weird when browsing from my iphone4.
    I’m trying to find a theme or plugin that might be able to correct this problem.
    If you have any recommendations, please share.

    1. The best one I have found is ‘WP Mobile Edition’ so far – give it a try and let me know how you get on.

  10. Hi, all the time i used to check weblog posts here in the early hours
    in the daylight, as i enjoy to find out more and more.

  11. I have been browsing on-line more than 3 hours lately, but I never
    discovered any attention-grabbing article like yours.

    It’s pretty value enough for me. In my opinion, if all website owners and bloggers made good content
    material as you did, the net will be much more helpful than ever before.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.