To import Mailbox to a PST File first of all we need to assign user or group to “Mailbox Import Export” role. After that that user or group can export or import Mailbox to a PST file.
For assign user to that role open Powershell as administrator and run following commandAssign ‘Mailbox Import Export’ role to a security group:
New-ManagementRoleAssignment -Role “Mailbox Import Export” -User AdminUser
Assign ‘Mailbox Import Export’ role to a security group run next command:
New-ManagementRoleAssignment -Role “Mailbox Import Export” -SecurityGroup TekbloqGroup
Now AdminUser and user which member Tekbloqgroup can export and import mailbox.
Then we can import Mailbox to a PST File with following command:
New-MailboxImportRequest -Mailbox “Asim.Alili” -FilePath C:\ImportAsimAlili.pst
Here Asim.Alili is mailbox which we want to import and ImportAsimAlili.pst is name of PST file which we want to import.