Grant yourself full access to the mailbox:
Add-MailboxPermission -Identity john -User Admin01 -AccessRights FullAccess
Add-MailboxPermission -Identity Export -User Admin01 -AccessRights FullAccess
Export the mailbox to a file:
Export-Mailbox -Identity <MailboxIdParameter> -PSTFolderPath <Path_Of_PST_Folder>\<File_Name>.pst
Export only Sent Items:
Export-Mailbox -Identity <MailboxIdParameter> -IncludeFolders ‘\Sent Items’ -TargetFolder <Target_Folder_Name> -TargetMailbox <MailboxIdParameter>
Exclude Folders:
Export-Mailbox -TargetMailbox <MailboxIdParameter> -TargetFolder <Target_Folder_Name> -ExcludeFolders “\Junk E-Mail”,”\Contacts”
Need specific date ranges exported?
Export-Mailbox -Identity <MailboxIdParameter> -StartDate “<Month/Day/Year>” -EndDate “<Month/Day/Year>” -PSTFolderPath <Path_Of_PST_Folder>\<File_Name>.pst
The post How to Export a Mailbox to PST via PowerShell appeared first on 916 Networks.