How to export specific folders from Exchange Mailbox' online archive to PST
So, the solution was that -IncludeFolders parameter did not accept #inbox# to make it language agnostic (as explained here) when -InArchive was also given. So I had to use -IncludeFolders parameter without the #-signs to retrieve specific folders from the online archive.
Related videos on Youtube
SuHwak
Updated on September 18, 2022Comments
-
SuHwak over 1 year
I am trying to export specific folders (and their subfolders) to PST files from an online archive of a mailbox. Servers are running Exchange 2010 (14.3.123.4) on Server 2008 R2.
So far I have this:
New-MailboxExportRequest ` -Mailbox $Mailbox ` -IncludeFolders "#Inbox#/Production/Bouwnummers/$BouwnummerFolder/*" ` -FilePath "\\[server]\PST-Export$\OTPM\$BouwnummerFolder.pst" ` -Name $Bouwnummer ` -DomainController $DomainController New-MailboxExportRequest ` -Mailbox $Mailbox ` -IncludeFolders "#Inbox#/Production/Bouwnummers/$BouwnummerFolder/*" ` -FilePath "\\[server]\PST-Export$\OTPM\$BouwnummerFolder Archive.pst" ` -Name "$Bouwnummer Archive"` -DomainController $DomainController ` -IsArchive
For the first export request, I get the expected result, however for the archive (2nd part) I only get the Deleted items folder (empty). I have checked with
Get-MailboxFolderStatistics -Identity $Mailbox -Archive | ft Folderpath | out-file E:\PST-Export\$Mailbox-archive.txt
that it does contain the folder, and subfolders that I want.So, how can I export the folders from the online archive to PST?