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 authenticode signature of the file 'ExchangeOnlineManagement.psd1' is not valid.
I use powershell 7.5.0
Any help is welcome.
best regards
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-BohrenSteel 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- plopsplCopper Contributor
Thank you very much. I've come to believe that Microsoft enjoys complicating things.
Kind regards,
Julien