5
我很难通过代理修改PsGet来工作。我更换一次$客户端初始化上PsGet.psm1本通过代理使用PsGet
# $client = (new-object Net.WebClient)
$proxyAddr = (get-itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings').ProxyServer
$proxy = new-object System.Net.WebProxy
$proxy.Address = $proxyAddr
$proxy.useDefaultCredentials = $true
$client = new-object system.net.WebClient
$client.proxy = $proxy
,但我仍然保持在Web客户端请求期间获得DotNetMethodException。
完美工作。谢谢! – GaiusSensei 2012-01-18 05:11:34