Home

Retrieving email/storage space statistics from Exchange

%3CLINGO-SUB%20id%3D%22lingo-sub-1188200%22%20slang%3D%22en-US%22%3ERetrieving%20email%20statistics%20from%20Exchange%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1188200%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20client%20asking%20to%20do%20the%20following%3A%3C%2FP%3E%3CP%3E%22we%20need%20to%26nbsp%3B%3CSPAN%3Eget%20the%20total%20size%20of%20all%20messages%20with%20dates%20between%205%2F1%2F16%20and%204%2F30%2F17.%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EBasically%20they%20want%20to%20purge%20anything%20between%20those%20dates%2C%20but%20first%20need%20to%20know%20the%20total%20size%20that%20they%20will%20be%20deleting%20before%20doing%20it%20so%20that%20size%20can%20be%20documented%2Freported.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EHoping%20someone%20can%20help!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EPenny%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1188200%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1188814%22%20slang%3D%22en-US%22%3ERe%3A%20Retrieving%20email%2Fstorage%20space%20statistics%20from%20Exchange%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1188814%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20run%20eDiscovery%20in%20report-only%20mode%2C%20or%20some%20EWS-based%20script%20that%20enumerates%20all%20the%20messages%20in%20the%20given%20range.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1191184%22%20slang%3D%22en-US%22%3ERe%3A%20Retrieving%20email%2Fstorage%20space%20statistics%20from%20Exchange%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1191184%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BThank%20you%20for%20the%20reply!%26nbsp%3B%20I%20have%20suggested%20the%20eDiscovery%20reports%20to%20the%20client%20and%20they%20are%20checking%20that%20out.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20they%20are%20really%20wanting%20to%20use%20PowerShell%2C%20any%20suggestions%20on%20how%20to%20do%20that%3F%26nbsp%3B%20I'm%20thinking%20maybe%20the%20New-ComplianceSearch%20or%20Search-Mailbox%20cmdlets%2C%20but%20maybe%20I'm%20off%20base%20(will%20both%20of%20these%20allow%20searching%20%3CSTRONG%3EALL%3C%2FSTRONG%3E%20mailboxes%20in%20the%20organization%20with%20the%20date%20range%20criteria%20and%20report%20necessary%20information%20-%20total%20%23%20messages%2C%20total%20size%2C%20etc)%3F%26nbsp%3B%20If%20there%20is%20a%20better%20option%2C%20I'd%20appreciate%20the%20suggestion!%26nbsp%3B%20Thank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1191368%22%20slang%3D%22en-US%22%3ERe%3A%20Retrieving%20email%2Fstorage%20space%20statistics%20from%20Exchange%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1191368%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20both%20cmdlets%20can%20search%20across%20all%20mailboxes%20and%20generate%20reports%20of%20the%20found%20messages%2Fmatches.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1191372%22%20slang%3D%22en-US%22%3ERe%3A%20Retrieving%20email%2Fstorage%20space%20statistics%20from%20Exchange%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1191372%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I have a client asking to do the following:

"we need to get the total size of all messages with dates between 5/1/16 and 4/30/17."

 

Basically they want to purge anything between those dates, but first need to know the total size that they will be deleting before doing it so that size can be documented/reported.

 

Hoping someone can help!

 

Thank you!

 

Penny

4 Replies
Highlighted

You can run eDiscovery in report-only mode, or some EWS-based script that enumerates all the messages in the given range.

Highlighted

@Vasil Michev Thank you for the reply!  I have suggested the eDiscovery reports to the client and they are checking that out. 

 

If they are really wanting to use PowerShell, any suggestions on how to do that?  I'm thinking maybe the New-ComplianceSearch or Search-Mailbox cmdlets, but maybe I'm off base (will both of these allow searching ALL mailboxes in the organization with the date range criteria and report necessary information - total # messages, total size, etc)?  If there is a better option, I'd appreciate the suggestion!  Thank you!

Highlighted

Yes, both cmdlets can search across all mailboxes and generate reports of the found messages/matches.

Highlighted