Link to home
Start Free TrialLog in
Avatar of pfpoulsen
pfpoulsen

asked on

'New-ManagementRoleAssignment' is not recognized as the name of a cmdlet

Hi
I wan't to export a user mailbox to a .pst file from our Exchange server. We are running Exchange 2010, version number:  Version 14.1 (Build 218.15)
 I wan't to use the 'new-MailboxExportRequest cmdlet'. I've read that before you can use this cmdlet you have to grant user right for mailbox exports (http://exchangeserverpro.com/export-mailboxes-exchange-server-2010-sp1)

but my Exchange Management Shell do not recognize the 'New-ManagementRoleAssignment' cmdlet, it outputs:

[PS] C:\Windows\system32>New-ManagementRoleAssignment -Role "Mailbox Import Export" -User Administrator
The term 'New-ManagementRoleAssignment' is not recognized as the name of a cmdlet, function, script file, or operable p
rogram. 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:29
+ New-ManagementRoleAssignment <<<<  -Role "Mailbox Import Export" -User Administrator
    + CategoryInfo          : ObjectNotFound: (New-ManagementRoleAssignment:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Open in new window


Anyone know why i can't use that cmdlet??

Best Regards
Avatar of E_T_B
E_T_B
Flag of Afghanistan image

If you don't have the correct permissions, then you won't be able to see the cmdlet.

Are you a a member of the Organizational Management group?
Avatar of pfpoulsen
pfpoulsen

ASKER

hmm don't know.. How can I check it?
Are you running the command in Exchange Shell (not powershell)?
ASKER CERTIFIED SOLUTION
Avatar of E_T_B
E_T_B
Flag of Afghanistan image

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
My user account was not a member of organization management - it is now, and that did the trick :-)