Cannot update to ExchangeOnlineManagement 2.0.6-Preview5

GlenTech 496 Reputation points
2022-07-14T00:56:27.477+00:00

I can't seem to install the latest preview version. I received a warning that the current one I'm using is going to be depreciated but then when I try to update I keep receiving errors. Where did I go wrong?

220556-image.png

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,198 questions
Windows for business | Windows Server | User experience | PowerShell
{count} votes

1 answer

Sort by: Most helpful
  1. KyleXu-MSFT 26,396 Reputation points
    2022-07-14T08:10:08.33+00:00

    @GlenTech

    Follow this blog to install those module/package first, then try to install 2.0.6-Preview5 later:

    [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12  
    Install-PackageProvider -Name NuGet -Force  
    Install-Module -Name PowerShellGet -Force -AllowClobber  
    

    Please note: you need to close all PowerShell Windows and from an elevated PowerShell session to install them one by one. (run this first command, then close current PowerShell window, then open a new PowerShell session to run this second one)


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.