# Proxy connection 

**URL:** <https://forums.powershell.org/t/proxy-connection/17760>\
**Category:** PowerShell Help\
**Created:** [October 15, 2021, 4:26pm UTC](https://forums.powershell.org/t/proxy-connection/17760 "2021-10-15T16:26:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thepunisher\_now](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/thepunisher_now/32/1776_2.png) [@Thepunisher\_now](https://forums.powershell.org/u/Thepunisher_now)\
**Post date:** [October 15, 2021, 4:26pm UTC](https://forums.powershell.org/t/proxy-connection/17760/1 "2021-10-15T16:26:00Z")

</div>

Hi, please can you help me?  
I’m behind a proxy and when I try to install modules, system denies to connect to internet. Please can you explain how to pass data over a proxy server with authentication?  
Thanks

---

<div class="post-metadata">

**Author:** ![matt-bloomfield](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matt-bloomfield](https://forums.powershell.org/u/matt-bloomfield)\
**Post date:** [October 15, 2021, 5:29pm UTC](https://forums.powershell.org/t/proxy-connection/17760/2 "2021-10-15T17:29:56Z")

</div>

Hi, welcome to the forum 👋

Have you tried the `-Proxy` and `-ProxyCredential` parameters of the `Install-Module` cmdlet?

I’m not behind a proxy, but it would go something like this:

`Install-Module NewModule -Proxy 'http://mylocalproxy:8080' -ProxyCredential (Get-Credential)`

---

<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:21pm UTC](https://forums.powershell.org/t/proxy-connection/17760/3 "2024-05-16T20:21:11Z")

</div>

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


