Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2314

Anmeldedaten für Proxy permantent aktivieren

$
0
0

Hallo zusammen,

wenn ich via Powershell eine Verbindung via Proxy bspw. auf MS Repositories herstelle muss ich immer meine Anmeldung konfigurieren:

$Wcl = new-object System.Net.WebClient
$Wcl.Headers.Add(“user-agent”, “PowerShell Script”)
$Wcl.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials

wie bekomme ich diese Einstellung permanent hinterlegt?


Viewing all articles
Browse latest Browse all 2314


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>