title: Is there a way to force all web request to go through a proxy?
body: <p>I'm working in an office and must use http proxy to access internet.</p>
  
  <p>Is there any $PSvariable or environment variable that would tell powershell to use http proxy when requesting an external ressource ? (like http_proxy env var in linux : 
  <code>http_proxy=http://username:password@host:port/<br>
  export http_proxy</code> )</p>
  
  <p>I know i can do it for webclient </p>
  
  <pre><code>$proxy = [System.Net.WebRequest]::GetSystemWebProxy()
  $proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
  $web = New-Object System.Net.WebClient
  $web.proxy = $proxy
  </code></pre>
  
  <p>, do it for pssessions</p>
  
  <pre><code>$PSSessionOption = New-PSSessionOption -ProxyAccessType IEConfig -ProxyAuthentication Negotiate -ProxyCredential Domain\User
  </code></pre>
  
  <p>but sometimes i cant find any solution for example how to use <code>update-help |save-help</code>  through proxy?</p>