Detected 1 occurrence(s) of ‘default\s*credentials’: if(Test-Connection myCorpProxy -Count 1 -Quiet) { $global:PSDefaultParameterValues = @{ 'Invoke-RestMethod:Proxy'='http://myCorpProxy:8080' 'Invoke-WebRequest:Proxy'='http://myCorpProxy:8080' '*:ProxyUseDefaultCredentials'=$true } } Source: http://pastebin.com/raw.php?i=nmUWJ8M0
↧