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