Find objects with specific message class in exchange 2007 mailbox store

dornmx
dornmx used Ask the Experts™
on
Hi to all the Exchange experts,
after a change in the archive soution for MS Exchange 2007 I have to find (or count) objects with the message class "XBASE Reference" in abut 200 mailboxes. Does anybody can help me to create the needed cmdlet for the exchange shell or know another way to archive a lthis list?

Thanks,
Tom
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2010
Commented:
Try this from Ex shell

PS> get-mailbox –Database DB1 | Export-Mailbox –SubjectKeywords "Discovery Keywords" –TargetMailbox Administrator –TargetFolder 'MyData'

more here
http://msexchangeteam.com/archive/2006/12/18/431934.aspx
Awarded 2009
Top Expert 2010

Commented:
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.

Commented:
Hi the "accepted Solution" is not relevant  and nothing to do with searching for emails based on message class..
Top Expert 2010

Commented:
syswin2 - you are correct.
The correct answer should be to use Messagecontent class in Exchange 2007

New-ManagedContentSettings -FolderName Calendar -MessageClass Calendar -Name MyCalendarContentSettings -RetentionEnabled $true -RetentionAction MoveToDeletedItems -AgeLimitForRetention "30"

More here:
http://technet.microsoft.com/en-us/library/aa996014%28EXCHG.80%29.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial