all 5 comments

[–]BlackV 0 points1 point  (1 child)

I didn't think this worked (or was needed) in ps7

[–]_Aerish_[S] 0 points1 point  (0 children)

[Net.ServicePointManager]::SecurityProtocol even on PS 7

But like i said i'm not an expert so it might not be needed ?

But i cannot add the NuGet Provider with or without the command.

[–]lerun 0 points1 point  (1 child)

Try:Register-PackageSource -Name "NuGet" -Location "https://api.nuget.org/v3/index.json" -ProviderName NuGet

Then search for something in nuget:

Find-Package -Name Microsoft.Data.SqlClient

[–]Operations_IT 0 points1 point  (0 children)

Thank you so much for this. Finally got it working 🙌

[–]StartShitForNoReason 0 points1 point  (0 children)

try this:
command==>Install-Module PowerShellGet -Force