Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, May 3, 2019 10:28 AM
Hi all,
I have setup the exchange server 2016, i imported all mailbox PST for all users.
However due to the mailbox only has 14 days of records, i would need to import again the PST for each users.
Is there a way to import PST into exchange without importing the duplicated email?
Much appreciate anyone help on this.
Thanks.
Regards,
Min
All replies (6)
Wednesday, May 8, 2019 9:41 AM âś…Answered
Hi,
Do you mean under the Inbox folder, a subfolder named Inbox is created?
If so, don't use the TargetRootFolder parameter in your command. Please test with several users, if it works, then modify the command to import multiple pst files:
New-MailboxExportRequest -Mailbox <user name> -FilePath "<shared folder path>"Dir \\sharedpath\*.pst | %{ New-MailboxImportRequest -Name <String> -BatchName <String> -Mailbox $_.BaseName -FilePath $_.FullName }
Regards,
Lydia Zhou
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.
Friday, May 3, 2019 7:38 PM
Have you tried toggling the "Do not import duplicates" option in the Import/Export wizard?
Monday, May 6, 2019 9:59 AM
Hi,
If you use New-MailboxImportRequest to import pst files, you can use the ConflictResolutionOption parameter to specify what to do if there are multiple matching messages in the target. The default value is KeepSourceItem. The duplicates won't be generated in the same folders.
For more information about this parameter: New-MailboxImportRequest
Regards,
Lydia Zhou
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.
Tuesday, May 7, 2019 8:11 AM
Hi Lydia,
What's the exact cmd syntax that i can use to key in for this cmd?
thanks.
Tuesday, May 7, 2019 8:51 AM
Hi,
You don't have to add any other parameter to your New-MailboxImportRequest cmdlet, because the default value is KeepSourceItem for ConflictResolutionOption parameter. It won't generate duplicates in the same folder by default.
If you want to know how to use New-MailboxImportRequest to import pst files, you can use the following command:
New-MailboxExportRequest -Mailbox <user name> -FilePath "<shared folder path>" -TargetRootFolder <folder name>
You can use this command to import multiple pst files for different users:
Dir \\sharedpath\*.pst | %{ New-MailboxImportRequest -Name <String> -BatchName <String> -Mailbox $_.BaseName -FilePath $_.FullName -TargetRootFolder <folder name>}
This command imports all of the .pst files on a shared folder. Each .pst file name is named after a corresponding user's alias. The command creates an import request for all the .pst files and imports the data into the matching mailbox.
You can check this similar thread to know more about the command: How to migrate mdaemon mailbox into exchange 2016?
Regards,
Lydia Zhou
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.
Wednesday, May 8, 2019 9:20 AM
Hi Lydia,
I tried the cmd, found out few things:-
i. import one a.pst then import b.pst into the same mailbox, it will import the same duplicated emails.
ii. the cmd will make the inbox imported within the inbox folder, means when i open the inbox i need to browse into another inbox folder in order to view the PST data.
Dir \\sharedpath\*.pst | %{ New-MailboxImportRequest -Name <String> -BatchName <String> -Mailbox $_.BaseName -FilePath $_.FullName -TargetRootFolder <folder name>}