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 authe...
  • Andres-Bohren's avatar
    Jan 29, 2025

    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

Resources