Forum Discussion
uzhxhqyd39
Jan 27, 2022Brass Contributor
Install PnP.PowerShell modules fails with not a properly-formed module warning
Hi, I'm trying to install PnP.PowerShell on a Windows 2012 R2 server and it's not installing. All I get is: VERBOSE: Hash for package 'PnP.PowerShell' does not match hash provided from the ...
Jan 27, 2022
install-module pnp.powershell should work (Just tried it on a Windows server), perhaps the TLS settings? First run [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12 and then try the install-module pnp.powershell again.
- uzhxhqyd39Jan 28, 2022Brass ContributorThanks for that input, unfortunately it didn't help. Get the same warning and the module is not installed
- Did you specify a specific version? Default what is tried to install is 1.9.0
- is it required to update somehow the link to the powershellgallery?- Jan 28, 2022Didn't install a specific version, just the install-module pnp.powershell. Perhaps uninstalling the old module SharePointPnPPowerShellOnline is you used that before?
https://pnp.github.io/powershell/articles/upgrading.html