New Managementroleassignment Is Not Recognized As A Cmdlet Failed

This was a frustrating error that, if I had slowed down for 2 minutes, would have been easy for me to figure out what was wrong.

The Term New-ExchangeCertifcate Is Not Recognized As The Name Of A cmdlet

The issue was that the Exchange Power Shell – Management Shell cmdlets was not in the location Exchange expected sooooo, I had to run the standard Windows Server Power Shell and load the commands manually:

  1. Right click on the standard Windows Power Shell and select RUN AS ADMINISTRATOR
  2. paste in the following code:
    .

    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -PSConsoleFile “C:\Program Files\Microsoft\Exchange Server\v14\bin\exshell.psc1″ -noexit -command “. ‘C:\Program Files\Microsoft\Exchange Server\v14\bin\Exchange.ps1’”

    .
    Note that when you paste you WILL have to fix the single quote ‘ as my text editor appears to change them some gibberish.In my case an addition problem was that the blogs I was looking at to figure out my problem did not have the \V14\ folder in their path… this is bad.

  3. type your Exchange command and watch it work 🙂

Share This With Your Friends Now:

 

If you are trying to run the new MailboxExportRequest and getting above error here is what will help you to resolve the issue.

  • You can't use the Exchange Management Console (EMC) to create a mailbox export request. You must use the Shell. ( too bad I wish this was an option from GUI as well)
  • You have to install SP1 or newer on your Exchange 2010 Server
  • Create Shared folder with fallowing permissions “grant Exchange Trusted Subsystem read/write permission”
  • This is Simple File Sharing permissions ( NOT NTFS) see the picture
  • You have to run New-ManagementRoleAssignment first , otherwise you will get the error above
  • Once you run the commons close tour PS and re-open it

Example

Assign Role

******user name "BakinJM" change this to your own****

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

Export Run

New-MailboxExportRequest -Mailbox BakinJM -FilePath "\\PC1\pst$\BakinJM.pst

Monitor Process

Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

Clear the previous Request

Get-MailboxExportRequest | Remove-MailboxExportRequest

Import PST

The most comprehensive and easy to fallow  post in this regard IMO…..

Henrik Walther

  • A look at the Import/Export Mailbox improvements in Exchange 2010 Service Pack 1 (Part 2

Steve Goodman

  • Create a Mailbox Export Request

http://technet.microsoft.com/en-us/library/ff459227.aspx

  • Set Permissions for Shared Folders

http://technet.microsoft.com/en-us/library/cc726004.aspx

Respectfully,
Oz Casey, Dedeal ( MVP north America)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +
http://smtp25.blogspot.com/ (Blog)
http://telnet25.wordpress.com/ (Blog)

0 comments

Leave a Reply

Your email address will not be published. Required fields are marked *