Forum Discussion
plopspl
Jan 29, 2025Copper Contributor
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...
- 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
Andres-Bohren
Jan 29, 2025Steel 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
- plopsplJan 30, 2025Copper Contributor
Thank you very much. I've come to believe that Microsoft enjoys complicating things.
Kind regards,
Julien