Powershell - Install Nuget failed, WARNING: Unable to download from URI

 When trying to run Install-Module something from Nuget, the error code came up like this:

WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.
WARNING: Unable to download the list of available providers. Check your internet connection.
PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.

This solution from StackOverflow helped. 

Run this first

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Comments

Popular posts from this blog

Powershell Install-Module Error - Unable to Download from URI ... 0x409

Configuring App-only Authentication for Exchange Online for Powershell Scripts