New-MailboxExportRequest going after Specific Folder and it's subfolders
I have a legal discovery that I need to export into PST files, I can't export into 1 file because the discovery is over 24 gb in size.
I used the Discovery feature via the ECP console and got my results they are saved in a mailbox called DiscoveryMailbox all results for each person involved are located within the Mailbox under a folder called Subject then there are subfolders for each person
named in the Discovery for example
Here is a Tree
Subject>Mark L
Then there are the normal mailbox folders underneath each name
I tried the following command and it's not giving me the results I am looking for, need some urgent advice:
New-MailboxExportRequest -Mailbox DiscoveryMailbox -IncludeFolders "Subject/Mark L/*" -FilePath \\location\markL.pst
I receive results but it's not the data that is in the mailbox folder named Mark L... What am I missing?
Any help would be greatly appreciated otherwise i will have to tie up my Outlook client to do the export to PSTJessica Cochran
March 27th, 2012 8:10pm
Hi Jessica,
You're on the right path, though it might pay to run the following command to validate the full paths of the folders contained within the mailbox and work with the one that contains your results:
Get-MailboxFolderStatistics -Identity "discovery search mailbox" | ft Identity
From here you'd simply copy the relevant path and include it in the New-MailboxExportRequest command. For example, I ran a search on my own mailbox and targeted the results to a custom discovery mailbox named searchStaff (your equivalent of DiscoveryMailbox).
Running the above command over it produces the following list of folders:
Identity
--------
searchStaff\Top of Information Store
searchStaff\123456
searchStaff\123456\Lain Robertson-28?03?2012 10:02:54 AM
searchStaff\123456\Lain Robertson-28?03?2012 10:02:54 AM\Primary Mailbox
searchStaff\123456\Lain Robertson-28?03?2012 10:02:54 AM\Primary Mailbox\Inbox
searchStaff\123456\Lain Robertson-28?03?2012 10:02:54 AM\Primary Mailbox\Recoverable Items
searchStaff\123456\Lain Robertson-28?03?2012 10:02:54 AM\Primary Mailbox\Recoverable Items\Deletions
searchStaff\Calendar
searchStaff\Contacts
searchStaff\Conversation Action Settings
searchStaff\Deleted Items
searchStaff\Drafts
searchStaff\Inbox
searchStaff\Journal
searchStaff\Junk E-Mail
searchStaff\Notes
searchStaff\Outbox
searchStaff\Sent Items
searchStaff\Tasks
searchStaff\Recoverable Items
searchStaff\Deletions
searchStaff\Purges
searchStaff\Versions
From here, I can see the folder I'm actually after is
searchStaff\123456\Lain Robertson-28?03?2012 10:02:54 AM\Primary Mailbox\Inbox, which I can then include in the following command:
New-MailboxExportRequest -Mailbox searchStaff -IncludeFolders "searchStaff\\123456\\Lain Robertson-28?03?2012 10:02:54 AM\\Primary Mailbox\\Inbox" -FilePath \\location\share\lain.pst
Note the escaping of the backslashes in the IncludeFolders parameter. If you don't do this it's treat the path as having special characters in it and won't work.
If this produces the same results as before, then the search itself hasn't produced the results you were hoping for, so you'll have to go back and troubleshoot that.
Cheers,
Lain
Free Windows Admin Tool Kit Click here and download it now
March 27th, 2012 10:16pm
Thank you so much for the speedy answer. I am glad to know I was on the right track
What if I want to include everything underneath the Lain Robertson folder??Jessica Cochran
March 28th, 2012 8:29am
Hi Jessica,
You'd just chop the \\Primary Mailbox\\Inbox off the end of the -IncludeFolders parameter. So, using my example from above, you'd end up with the following:
New-MailboxExportRequest -Mailbox searchStaff -IncludeFolders "searchStaff\\123456\\Lain Robertson-28?03?2012 10:02:54 AM" -FilePath \\location\share\lain.pst
The only thing I'd add to that is you need to make sure the original search captured everything you wanted, as the export function will only be able to see the search results. That might mean you have to go back to the original search and broaden the search
critera, but I'm pretty sure you already knew that.
If you wanted everything from the user's mailbox, you could just export directly from their mailbox with the same two commands I used in my previous post. Instead of targeting the "discovery search mailbox", you'd simply target the user's mailbox.
Again, I know I'm stating the obvious, but I prefer to do that rather and sound silly than not mention it at all :)
Cheers,
Lain
Free Windows Admin Tool Kit Click here and download it now
March 28th, 2012 8:54am
I am attached to the SearchResults mailbox and I can see information in the folder but i think it's not copying because of private items
Even when i try to export to PST from Outlook it still doesn't give me all of the information I can see.
Anyway around that? Jessica Cochran
March 28th, 2012 9:00am
I've had a bit of a search around but I don't have a good response for this, I'm afraid.
Personally, I haven't had this issue yet (or perhaps I just haven't noticed), so I'm not sure what other options there are. It sort of sounds like a potential MAPI limitation, but I'm just speculating as I can't remember if the new export requests even still
use MAPI.
Sorry I'm not much help on this one. I will keep looking because I am interested, but hopefully someone who has actually worked through this issue (or just knows more about it) can get back to you in the meanwhile, as I know this is a time-sensitive issue
for you.
Cheers,
Lain
Free Windows Admin Tool Kit Click here and download it now
March 28th, 2012 9:50am
Its definately interesting i had 6 searches and 1 of the 6 is giving me issues exporting to PST from Outlook even. Jessica Cochran
March 28th, 2012 9:56am
Call this an uneducated guess, but the mailbox that's giving you grief isn't enabled for archiving, is it?
You can check this with the following command:
Get-Mailbox -Identity <user> | ft Name,ArchiveDatabase
If the database is blank, then it's not enabled. If it has the name of a database in there, then you might wan to try adding the
-IsArchive switch to the New-MailboxExportRequest statement and try it again.
Cheers,
Lain
Free Windows Admin Tool Kit Click here and download it now
March 28th, 2012 10:23am