Searching all mailboxes in an orginization for all mail to and from a domain
I am searching through our orginizations mailboxes for any mail to and from a specific domain for a date range. It appears to be working as I am seeing some mail in standard folders, but I am not seeing mail in subfolders. Do I need an additional switch in my Export-Mailbox command?Get-Mailbox -server XXXX | Export-Mailbox -StartDate XX/XX/XXXX -EndDate XX/XX/XXXX -AllContentKeywords "domain name" -TargetMailbox XXXXX -TargetFolder XXXXX
February 23rd, 2010 9:27pm
Hi,
Try to use -IncludeFolders parameter.
By default
The Export-Mailbox cmdlet exports all empty folders and special folders to the target location. The special folders are the following:
Inbox
Deleted Items
Drafts
Junk E-mail
Outbox
Sent Items
Journal
Calendar
Contacts
Notes
Tasks
You can use IncludeFolders like this
-IncludeFolders "\Junk E-mail","\Contacts"
Regards,
Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
February 23rd, 2010 9:39pm
Is there a wildcard option for the -IncludeFolders parameter? Not every one of the users organizes their mail in the same manner.
February 23rd, 2010 9:47pm