none
delete emails from mailbox in exchange shell RRS feed

  • Question

  • We have more than 100 users who have mail items in their mailbox from 2004.

    We need to run a script or cmd in exchange shell to delete mail items in mailbox older than 400 days, we need to export these deleted emails to a PST file.

    can we run these jobs in batches of 10 users?
    Thursday, March 12, 2015 9:36 AM

Answers

  • Hi Sphilip,

    I recommend you consider using Outlook AutoArchive as this is a easy way to achieve your requirement .

    You can configure to archive the old items and move the old item to a pst file.

    Please refer to the following article to understand how to configure AutoArchive:

    AutoArchive settings explained

    Best regards,


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Niko Cheng
    TechNet Community Support


    Monday, March 16, 2015 8:55 AM
    Moderator