# Powershell gallery in a proxy environment

**URL:** <https://forums.powershell.org/t/powershell-gallery-in-a-proxy-environment/5686>\
**Category:** PowerShell Help\
**Created:** [February 3, 2016, 9:49pm UTC](https://forums.powershell.org/t/powershell-gallery-in-a-proxy-environment/5686 "2016-02-03T21:49:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sai-prasad-vaddepall](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sai-prasad-vaddepall](https://forums.powershell.org/u/sai-prasad-vaddepall)\
**Post date:** [February 3, 2016, 9:49pm UTC](https://forums.powershell.org/t/powershell-gallery-in-a-proxy-environment/5686/1 "2016-02-03T21:49:15Z")

</div>

Hi,

Has anyone managed to get the internet access from Powershell v5 for the Powershell gallery to work, typically with nuget based repositories? If yes, please share how you did.

Thanks

---

<div class="post-metadata">

**Author:** ![sai-prasad-vaddepall](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sai-prasad-vaddepall](https://forums.powershell.org/u/sai-prasad-vaddepall)\
**Post date:** [February 3, 2016, 11:21pm UTC](https://forums.powershell.org/t/powershell-gallery-in-a-proxy-environment/5686/2 "2016-02-03T23:21:29Z")

</div>

This is what I see:

“WARNING: Unable to download the list of available providers. Check your internet connection.”

Internet access is there from the machine when browsed from Internet explorer

---

<div class="post-metadata">

**Author:** ![wilfredo-perez](https://avatars.discourse-cdn.com/v4/letter/w/e99b99/32.png) [@wilfredo-perez](https://forums.powershell.org/u/wilfredo-perez)\
**Post date:** [February 3, 2016, 11:41pm UTC](https://forums.powershell.org/t/powershell-gallery-in-a-proxy-environment/5686/3 "2016-02-03T23:41:24Z")

</div>

Can you update help? You may have to authenticate first from within Powershell. I am behind a proxy so I need to use:

```
$webclient = New-Object System.Net.WebClient
$creds = Get-Credential
$webclient.Proxy.Credentials = $creds
Save-Help -DestinationPath C:\Powershell

Update-Help
```

Do you have admin rights? Hope this helps

---

<div class="post-metadata">

**Author:** ![sai-prasad-vaddepall](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sai-prasad-vaddepall](https://forums.powershell.org/u/sai-prasad-vaddepall)\
**Post date:** [February 4, 2016, 12:42am UTC](https://forums.powershell.org/t/powershell-gallery-in-a-proxy-environment/5686/4 "2016-02-04T00:42:15Z")

</div>

Thanks Wilfredo for your reply. Apologies that I haven’t mentioned the ways I have already tried.

I have tried setting the proxy through the PowerShell in the following ways:

$webclient = New-Object System.Net.WebClient  
$creds = Get-Credential  
$webclient.Proxy.Credentials = $creds

Also, using the scripted credentials:  
$webclient = New-Object System.Net.WebClient  
$pwd = ConvertTo-SecureString “password” -AsPlainText -Force  
$creds = New-Object System.Management.Automation.PSCredential(“username”,$pwd)  
$webclient.Proxy.Credentials = $creds

But both didn’t work.

I can’t update help and I do have admin rights.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:43pm UTC](https://forums.powershell.org/t/powershell-gallery-in-a-proxy-environment/5686/5 "2024-05-16T20:43:00Z")

</div>

Closed on May 16, 2024, 8:43pm UTC


