• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 10884
  • Last Modified:

'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
0
pfpoulsen
Asked:
pfpoulsen
  • 2
  • 2
1 Solution
 
E_T_BCommented:
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?
0
 
pfpoulsenAuthor Commented:
hmm don't know.. How can I check it?
0
 
Rajith EnchiparambilOffice 365 & Exchange ArchitectCommented:
Are you running the command in Exchange Shell (not powershell)?
0
 
E_T_BCommented:
From the Exchange Mangement Shell,

Get-RoleGroupMember "Organization Management"

0
 
pfpoulsenAuthor Commented:
My user account was not a member of organization management - it is now, and that did the trick :-)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now