Problem:
When you want to import multiple pst files, by using New-MailboxImportRequest, you may receive this error:
New-MailboxImportRequest : The term ‘New-MailboxImportRequest’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again
Solution:
Use one or all of the following options
A:
Grant the specific user the role “Mailbox import Export”
New-ManagementRoleAssignment –Role “Mailbox Import Export” –User Administrator
B:
Create a new universal security group : Exchange-Import-Export
Add you Exchange admins to the members of this group
Sometimes you receive this error :
[PS] C:\Scripts>New-ManagementRoleAssignment -Name “Exchange-Import-Export” -SecurityGroup “Exchange-Import-Export” -Role “Mailbox Import Export”
Located recipient “domain.nl/Microsoft Exchange Security Groups/Exchange-Import-Export”, but the recipient type “NonUniversalGroup” isn’t an expected type. Only users or universal security groups can be assigned to the management role.
Change the security group to universal J
Execute this command :
New-ManagementRoleAssignment -Name “Exchange-Import-Export” -SecurityGroup “Exchange-Import-Export” -Role “Mailbox Import Export”
C:
Change the security, Add modify rights for the ‘Exchange trusted Subsystem’
After one or more of these solutions should do the job !