Forum Discussion
Angel
Resolver III
6 years agoPowershell - Can't connect to PSGallery
Hi everyone, I am trying to get MicrosoftPowerBIMgmt from PSGallery and it returns an error. The code i have used is: Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
Install-M...
- 6 years ago
Hi, lbendlin
It seems that it depens on the security protocol. I have solved with this code.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12You can find the explanation here...
Thanks, anyway...
lbendlin
Super User
6 years agoInteresting. I didn't have to specify PSGallery. Is your company maybe blocking access?
Have you used -Scope CurrentUser for the module install?