5
PsGet을 프록시로 수정하는 데 어려움을 겪고 있습니다. 나는이프록시를 통한 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
와 PsGet.psm1에있는 모든 $ 클라이언트 초기화를 대체하지만 난 여전히 웹 클라이언트 요청시 DotNetMethodException 점점 계속.
완벽하게 작동했습니다. 감사! – GaiusSensei