5
Tôi đang gặp khó khăn khi sửa đổi PsGet để hoạt động mặc dù proxy. Tôi thay thế mỗi $ client khởi tạo trên PsGet.psm1 với điều nàySử dụng PsGet qua Proxy
# $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
nhưng tôi vẫn tiếp tục nhận được DotNetMethodException trong yêu cầu WebClient.
Làm việc hoàn hảo. Cảm ơn! – GaiusSensei