Link to home
Start Free TrialLog in
Avatar of AJKBOC
AJKBOC

asked on

The term 'New-MailboxExportRequest' is not recognized as the name of a cmdlet

From what I could gather, this is the process for exporting a mailbox to a pst file on Exchange 2010 SP1

Create a folder and add full access to the "Exchange Trusted Subsystem" Security Group
Give the Administrator the "Mailbox Import Export" role. New-ManagementRoleAssignment -Role "Mailbox Import Export" -User Administrator
Open Exchange Management Shell and run the following command to export the mailbox
New-MailboxExportRequest -Mailbox "myusername" -Filepath "\\mail\c$\Backup\myusername.pst"

I realize that the commands were different before SP1 and I searched everywhere for the new ones.

My problem when I try the above export command, I get the below

[PS] C:\Windows\system32>New-MailboxExportRequest -Mailbox "myusername" -Filepath "
\\mail\c$\Backup\myusername.pst"
The term 'New-MailboxExportRequest' 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.
At line:1 char:25
+ New-MailboxExportRequest <<<<  -Mailbox "myusername" -Filepath "\\mail\c$\Backup
\myusername.pst"
    + CategoryInfo          : ObjectNotFound: (New-MailboxExportRequest:String
   ) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

[PS] C:\Windows\system32>


What I'm I doing wrong here?
Avatar of Mohamed ElManakhly
Mohamed ElManakhly
Flag of Egypt image

you probably not login-ed as an exchange organization administrator . if you do try opening power shell , by right clicking on it and choose run as administrator
Avatar of AJKBOC
AJKBOC

ASKER

I am logged in as the Administrator, and like I said in the original post, the "Mailbox Import Export" role has been assigned to the Administrator.
ASKER CERTIFIED SOLUTION
Avatar of AJKBOC
AJKBOC

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Mailbox import export is assigned to groups not users .

please note that the rule is not assigned by default to the organization management group.

from the Exchange management console , go to toolbox and open rbac user editor .. create a new group add administrator to it and assign the role "Mailbox import export " to it
okay so assigning the role  to administrator solved it ,

good luck
Avatar of AJKBOC

ASKER

No, closing and opening the Exchange Management Shell solved it.
Exactly the same as making ANY WINDOWS BASED AUTHENTICATION CHANGE. The user must log out and log in again. In you instance, log out of the management shell and back in again.
Avatar of AJKBOC

ASKER

Closing and opening the Exchange Management Shell solved it