May 27 2018 03:37 AM
Hello, i am missing the Get/Restore-RecoverableItems cmdlets, eg they are not found when i try to run them.
The documentation says that the cmdlets are in the "Exchange" module.
The documentation doesn't say, but other blogs, articles as well as MS support, say that i need the "Mailbox Import Export" role.. Well i have it, and have had it for years..
MS support are shrugging with helpful comments like "hmmm it works for me".
My tenant is in AU region, could the modules not be updated in my region yet? Can i connect to another region somehow?
Get-RecoverableItems: https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/get-recoverableitems?view=exch...
May 28 2018 07:23 AM
SolutionI wrote about this topic in March https://www.petri.com/recovering-deleted-email-exchange-online. At that time, the cmdlets had been deployed in the U.S. and EMEA and probably elsewhere (except the sovereign clouds, which are always different). Some people complained at the time that they couldn't see the cmdlets, but no one has asked recently, so I assume that the roll-out is complete. Making sure that the account that logs into PowerShell has the Mailbox Import Export role (and admin permissions) is key. Is there any possibility that your account is missing the role? Perhaps you can remove the role, log out, wait five minutes, reassign the role, sign out again, and then try... Just to be sure.
May 28 2018 10:54 AM
An easy way to check whether the cmdlet is available for your tenant is to run this:
Get-ManagementRole -Cmdlet Restore-RecoverableItems Name RoleType ---- -------- Mailbox Import Export MailboxImportExport
And yes, as seen from the above that's the role you need. If it's missing from the output, then the rollout has not completed for your tenant, or perhaps there is a different issue that you should address with support.
Jun 04 2018 07:59 PM
Thanks all..
I'm guessing it just took a long time for the permissions to replicate.. Anyway, its working now.
Jun 21 2019 05:28 AM
I tried what you asked for but it seems like it's not working. @Tony Redmond
Jun 21 2019 05:32 AM
@ashwani1 Does your account hold the Mailbox Import Export role? If it doesn't, you won't see the cmdlet.
Jun 21 2019 10:42 PM
Jun 22 2019 07:20 AM
Restore-RecoverableItems is an ExO cmdlet, and you are connecting to the SCC PowerShell endpoint.
Jun 22 2019 07:53 AM
@Vasil Michev It definitely doesn't help when you try and use a cmdlet that's in another module...
Sep 20 2020 04:46 AM
Issue is related to Module install for the Powershell
Please run get-module
once you have the Output please run Get-module -name xxxyyy | fl
Check if the Module has Powershell command listed in it
May 28 2018 07:23 AM
SolutionI wrote about this topic in March https://www.petri.com/recovering-deleted-email-exchange-online. At that time, the cmdlets had been deployed in the U.S. and EMEA and probably elsewhere (except the sovereign clouds, which are always different). Some people complained at the time that they couldn't see the cmdlets, but no one has asked recently, so I assume that the roll-out is complete. Making sure that the account that logs into PowerShell has the Mailbox Import Export role (and admin permissions) is key. Is there any possibility that your account is missing the role? Perhaps you can remove the role, log out, wait five minutes, reassign the role, sign out again, and then try... Just to be sure.