I was trying to use New-MailboxImportRequest to import a PST file into a mailbox. From EMS, I kept getting the following error:

“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”

I had to enter the following to get the necessary permission:

New-ManagementRoleAssignment –Role “Mailbox Import Export” –User UserImporting

I did this for the Administrator account, so:

New-ManagementRoleAssignment –Role “Mailbox Import Export” –User Administrator

Then, I was able to import the PST mail. With following command the email was put back into the same folder as when the mail was exported:

New-MailboxImportRequest -Mailbox mailboxname -FilePath UNCToFile

I imported the PST into a mailbox with an alias of jim:

New-MailboxImportRequest -Mailbox jim -FilePath \\SERVER1\c$\jim.pst