SOLVED

Missing "Restore-RecoverableItems" from the Exchange Module

%3CLINGO-SUB%20id%3D%22lingo-sub-198041%22%20slang%3D%22en-US%22%3EMissing%20%22Restore-RecoverableItems%22%20from%20the%20Exchange%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-198041%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20i%20am%20missing%20the%20Get%2FRestore-RecoverableItems%20cmdlets%2C%20eg%20they%20are%20not%20found%20when%20i%20try%20to%20run%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F34952iE4707E29BE34CDFD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Screen%20Shot%202018-05-27%20at%208.25.19%20pm.png%22%20title%3D%22Screen%20Shot%202018-05-27%20at%208.25.19%20pm.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20documentation%20says%20that%20the%20cmdlets%20are%20in%20the%20%22Exchange%22%20module.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F34954i7FE98A51F6AEC11C%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Screen%20Shot%202018-05-27%20at%208.18.34%20pm.png%22%20title%3D%22Screen%20Shot%202018-05-27%20at%208.18.34%20pm.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20documentation%20doesn't%20say%2C%20but%20other%20blogs%2C%20articles%20as%20well%20as%20MS%20support%2C%20say%20that%20i%20need%20the%20%22Mailbox%20Import%20Export%22%20role..%20Well%20i%20have%20it%2C%20and%20have%20had%20it%20for%20years..%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20style%3D%22width%3A%20231px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F34955iABA73F629BE6A94A%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Screen%20Shot%202018-05-27%20at%208.22.27%20pm.png%22%20title%3D%22Screen%20Shot%202018-05-27%20at%208.22.27%20pm.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMS%20support%20are%20shrugging%20with%20helpful%20comments%20like%20%22hmmm%20it%20works%20for%20me%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20tenant%20is%20in%20AU%20region%2C%20could%20the%20modules%20not%20be%20updated%20in%20my%20region%20yet%3F%26nbsp%3B%20Can%20i%20connect%20to%20another%20region%20somehow%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-RecoverableItems%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fmailboxes%2Fget-recoverableitems%3Fview%3Dexchange-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fmailboxes%2Fget-recoverableitems%3Fview%3Dexchange-ps%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-198041%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-200730%22%20slang%3D%22en-US%22%3ERe%3A%20Missing%20%22Restore-RecoverableItems%22%20from%20the%20Exchange%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-200730%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20all..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20guessing%20it%20just%20took%20a%20long%20time%20for%20the%20permissions%20to%20replicate..%26nbsp%3B%20Anyway%2C%20its%20working%20now.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-198312%22%20slang%3D%22en-US%22%3ERe%3A%20Missing%20%22Restore-RecoverableItems%22%20from%20the%20Exchange%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-198312%22%20slang%3D%22en-US%22%3E%3CP%3EAn%20easy%20way%20to%20check%20whether%20the%20cmdlet%20is%20available%20for%20your%20tenant%20is%20to%20run%20this%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3EGet-ManagementRole%20-Cmdlet%20Restore-RecoverableItems%0A%0AName%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20RoleType%0A----%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20--------%0AMailbox%20Import%20Export%20MailboxImportExport%0A%3C%2FPRE%3E%0A%3CP%3EAnd%20yes%2C%20as%20seen%20from%20the%20above%26nbsp%3Bthat's%20the%20role%20you%20need.%20If%20it's%20missing%20from%20the%20output%2C%20then%20the%20rollout%20has%20not%20completed%20for%20your%20tenant%2C%20or%20perhaps%20there%20is%20a%20different%20issue%20that%20you%20should%20address%20with%20support.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-198255%22%20slang%3D%22en-US%22%3ERe%3A%20Missing%20%22Restore-RecoverableItems%22%20from%20the%20Exchange%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-198255%22%20slang%3D%22en-US%22%3E%3CP%3EI%20wrote%20about%20this%20topic%20in%20March%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.petri.com%2Frecovering-deleted-email-exchange-online%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.petri.com%2Frecovering-deleted-email-exchange-online%3C%2FA%3E.%20At%20that%20time%2C%20the%20cmdlets%20had%20been%20deployed%20in%20the%20U.S.%20and%20EMEA%20and%20probably%20elsewhere%20(except%20the%20sovereign%20clouds%2C%20which%20are%20always%20different).%20Some%20people%20complained%20at%20the%20time%20that%20they%20couldn't%20see%20the%20cmdlets%2C%20but%20no%20one%20has%20asked%20recently%2C%20so%20I%20assume%20that%20the%20roll-out%20is%20complete.%20Making%20sure%20that%20the%20account%20that%20logs%20into%20PowerShell%20has%20the%20Mailbox%20Import%20Export%20role%20(and%20admin%20permissions)%20is%20key.%20Is%20there%20any%20possibility%20that%20your%20account%20is%20missing%20the%20role%3F%20Perhaps%20you%20can%20remove%20the%20role%2C%20log%20out%2C%20wait%20five%20minutes%2C%20reassign%20the%20role%2C%20sign%20out%20again%2C%20and%20then%20try...%20Just%20to%20be%20sure.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-713591%22%20slang%3D%22en-US%22%3ERe%3A%20Missing%20%22Restore-RecoverableItems%22%20from%20the%20Exchange%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-713591%22%20slang%3D%22en-US%22%3E%3CP%3EI%20tried%20what%20you%20asked%20for%20but%20it%20seems%20like%20it's%20not%20working.%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-713593%22%20slang%3D%22en-US%22%3ERe%3A%20Missing%20%22Restore-RecoverableItems%22%20from%20the%20Exchange%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-713593%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F364481%22%20target%3D%22_blank%22%3E%40ashwani1%3C%2FA%3E%26nbsp%3BDoes%20your%20account%20hold%20the%20Mailbox%20Import%20Export%20role%3F%20If%20it%20doesn't%2C%20you%20won't%20see%20the%20cmdlet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-715109%22%20slang%3D%22en-US%22%3ERe%3A%20Missing%20%22Restore-RecoverableItems%22%20from%20the%20Exchange%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-715109%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20tried%20what%20you%20asked%20for%20but%20it%20seems%20like%20it's%20not%20working.%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPFA%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F120309i8913814747BE9095%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Screenshot%20(35).png%22%20title%3D%22Screenshot%20(35).png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-right%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F120311iB833601D476829F8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Screenshot%20(34).png%22%20title%3D%22Screenshot%20(34).png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-715304%22%20slang%3D%22en-US%22%3ERe%3A%20Missing%20%22Restore-RecoverableItems%22%20from%20the%20Exchange%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-715304%22%20slang%3D%22en-US%22%3E%3CP%3ERestore-RecoverableItems%20is%20an%20ExO%20cmdlet%2C%20and%20you%20are%20connecting%20to%20the%20SCC%20PowerShell%20endpoint.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-715312%22%20slang%3D%22en-US%22%3ERe%3A%20Missing%20%22Restore-RecoverableItems%22%20from%20the%20Exchange%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-715312%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BIt%20definitely%20doesn't%20help%20when%20you%20try%20and%20use%20a%20cmdlet%20that's%20in%20another%20module...%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hello, i am missing the Get/Restore-RecoverableItems cmdlets, eg they are not found when i try to run them.

 

Screen Shot 2018-05-27 at 8.25.19 pm.png

 

The documentation says that the cmdlets are in the "Exchange" module.

 

Screen Shot 2018-05-27 at 8.18.34 pm.png

 

 

 

 

 

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..

Screen Shot 2018-05-27 at 8.22.27 pm.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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...

9 Replies
Highlighted
Best Response confirmed by Andrew Huddleston (Frequent Contributor)
Solution

I 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.

Highlighted

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. 

Highlighted

Thanks all..

 

I'm guessing it just took a long time for the permissions to replicate..  Anyway, its working now.

Highlighted

I tried what you asked for but it seems like it's not working.  @Tony Redmond 

Highlighted

@ashwani1 Does your account hold the Mailbox Import Export role? If it doesn't, you won't see the cmdlet.

Highlighted

 

I tried what you asked for but it seems like it's not working.  @Tony Redmond

PFAScreenshot (35).png

Screenshot (34).png

 

Highlighted

Restore-RecoverableItems is an ExO cmdlet, and you are connecting to the SCC PowerShell endpoint.

Highlighted

@Vasil Michev It definitely doesn't help when you try and use a cmdlet that's in another module...

Highlighted

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

 

@mukku18