If you are trying to download a module from the PowerShell gallery and seeing a message like
UNABLE TO DOWNLOAD FROM URI: HTTPS://GO.MICROSOFT.COM/FWLINK…
You are likely working on an older operating system with old cryptography. Fortunately, this is very easy to fix:
[Net.ServicePointManager]::SecurityProtocol
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
[Net.ServicePointManager]::SecurityProtocol
Install-Module PowershellGet -Force -SkipPublisherCheck
This website uses cookies.
View Comments
This is my first time visit and i am super happy to read everthing about powershell at single place.