Error loading exchangeonlinemanagement

%3CLINGO-SUB%20id%3D%22lingo-sub-2005496%22%20slang%3D%22en-US%22%3EError%20loading%20exchangeonlinemanagement%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2005496%22%20slang%3D%22en-US%22%3E%3CP%3EGreetings%2C%3C%2FP%3E%3CP%3EI'm%20trying%20to%20use%20Exchange%20PowerShell.%20I've%20loaded%20powershell%20ver%207.1%20with%20no%20problems%20on%20a%20Windows%2010%20machine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20use%20the%20command%20Import-Module%2C%20I%20get%20the%20error%20shown%20in%20the%20screen%20grab.%26nbsp%3B%20Any%20help%20for%20this%20newbie%20would%20be%20gratefully%20appreciated.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Screenshot%202020-12-20%20170929.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F241993iC50239526B1DFECA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202020-12-20%20170929.png%22%20alt%3D%22Error%20message%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EError%20message%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BThank%20you%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2005496%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2012995%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20loading%20exchangeonlinemanagement%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2012995%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F157007%22%20target%3D%22_blank%22%3E%40Rick%20Segal%3C%2FA%3E%3C%2FP%3E%3CP%3EHi%3C%2FP%3E%3CP%3Ewhat%20is%20the%20output%20of%20the%20following%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%24env%3APSModulePath.Split(%22%3B%22)%20%7C%20foreach%20%7BGet-ChildItem%20-Path%20%24_%20-Directory%20%7C%20where%20%7B%24_.name%20-like%20%22ExchangeOnline*%22%7D%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Eit%20should%20not%20be%20empty%2C%20if%20so%2C%20you%20need%20to%20install%20ExchangeManagementModule%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2013036%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20loading%20exchangeonlinemanagement%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2013036%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F790105%22%20target%3D%22_blank%22%3E%40farismalaeb%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%26nbsp%3B%20I%20got%20it%20working.%26nbsp%3B%20I%20didn't%20see%20an%20error%20in%20the%20management%20module%20loading.%3C%2FP%3E%3CP%3EAll%20good%20now.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Greetings,

I'm trying to use Exchange PowerShell. I've loaded powershell ver 7.1 with no problems on a Windows 10 machine.

 

When I use the command Import-Module, I get the error shown in the screen grab.  Any help for this newbie would be gratefully appreciated.

Error messageError message

 

 Thank you in advance

2 Replies

@Rick Segal

Hi

what is the output of the following 

$env:PSModulePath.Split(";") | foreach {Get-ChildItem -Path $_ -Directory | where {$_.name -like "ExchangeOnline*"}}

it should not be empty, if so, you need to install ExchangeManagementModule

@farismalaeb 

Thanks.  I got it working.  I didn't see an error in the management module loading.

All good now.

 

Thank you.