Forum Discussion

plopspl's avatar
plopspl
Copper Contributor
Jan 29, 2025
Solved

Powershell error when using install-module

Hello !

when I use Install-Module -Name ExchangeOnlineManagement

I get the following error :

Install-Package: The module 'ExchangeOnlineManagement' cannot be installed or updated because the authenticode signature of the file 'ExchangeOnlineManagement.psd1' is not valid.

I use powershell 7.5.0

Any help is welcome.

best regards

 

  • Andres-Bohren's avatar
    Andres-Bohren
    Steel Contributor

    Hi plopspl 

    PowerShell 7.5.0 comes with Microsoft.PowerShell.PSResourceGet

    use this instead:

    #Current User
    Install-PSResource -Name ExchangeOnlineManagement -Scope CurrentUser
    
    #All Users
    Install-PSResource -Name ExchangeOnlineManagement -Scope AllUsers


    Kind Regards
    Andres

    • plopspl's avatar
      plopspl
      Copper Contributor

      Thank you very much. I've come to believe that Microsoft enjoys complicating things.

      Kind regards,

      Julien

Resources