Powershell: How do I install the Nuget provider for PowerShell on a unconnected machine so I can install a nuget package from the PS command line?

Although I’ve tried all the previous answers, only the following one worked out:

1 – Open Powershell (as Admin)

2 – Run:

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

3 – Run:

Install-PackageProvider -Name NuGet

The author is Niels Weistra:
Microsoft Forum

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)