locked
Messaging Records Management / Retention Policy - How do I get a detailed report of what was deleted? RRS feed

Answers

  • Hi,

    please try this command to run prior and after policy is applied and the difference is what you need. It works for every folder, but you should change FolderScope part of the command.

    get-mailbox -resultsize unlimited | select displayname,alias,distinguishedname,@{name="OutBox items";expression={(get-mailboxfolderstatistics $_ -folderscope ‚OutBox‘ | select itemsinfolder,foldersize)}} | export-csv R:\Outboxcount.csv -encoding unicode -delimiter „;“

    Regards


    Zbyněk
    Friday, June 3, 2011 10:23 PM

All replies

  • Hi,

     

     

    As I understand, you want to get such report, if I misunderstand you, please let me know.

     

    The Microsoft Exchange Server Mailbox Manager has completed processing mailboxes.

    Started at: 2011-05-28 00:14:10

    Completed at: 2011-05-28 00:15:10

    Mailboxes processed:   3

    Message moved: 2

    Size of removed messages:  0.1KB

    Deleted messages:   2

    Size of deleted message:    5.0KB

     

    You could see the below thread.

    how to check the total size for the deleted items organization wide in exchange 2010


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Thursday, June 2, 2011 9:44 AM
  • Thanks for the response, but I need a report of how many items were deleted from each mailbox, by the retention policy. Getting the size of deleted items won't show me that.

    Thursday, June 2, 2011 2:25 PM
  • As my search and test, It seems Exchange 2010 don’t have the same report as Exchange 2003.

    But you could view the Performance Counters for Messaging Records Management, such as:

    a. Mailboxes Processed

    b. Items Deleted but Recoverable

    c. Items Subject to Retention Policy

    d. TotalSizeItemsExpired - Size of Items subject to Retention Policy (In Bytes)

    More information:

    Performance Counters for Messaging Records Management

     

    You could follow the below article to view the performance counters.

    View Performance Counters for Messaging Records Management


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Friday, June 3, 2011 2:15 AM
  • Hi,

    please try this command to run prior and after policy is applied and the difference is what you need. It works for every folder, but you should change FolderScope part of the command.

    get-mailbox -resultsize unlimited | select displayname,alias,distinguishedname,@{name="OutBox items";expression={(get-mailboxfolderstatistics $_ -folderscope ‚OutBox‘ | select itemsinfolder,foldersize)}} | export-csv R:\Outboxcount.csv -encoding unicode -delimiter „;“

    Regards


    Zbyněk
    Friday, June 3, 2011 10:23 PM
  • Thanks for the suggestion. I haven't tried it yet, but it looks like it would work, although it could take a while to run since it has to check every mailbox and mailbox folder. Too bad MS took out a very useful feature and we have to figure out ways to get similar functionality.
    Monday, June 6, 2011 1:24 PM