2017-10-09 3 views
1

나는 내 사무실에서 Windows PowerShell을 사용하여 Windows   7에서 특종을 설치하기 위해 노력하고있어,하지만 오류 아래주고있다 :프록시 설정에서 Scoop을 Windows 7에 설치할 수 없습니다. 예외가 있습니까?

나는 PowerShell 콘솔에서 다음 명령을 입력 한

Exception calling "Download String" with "1" argument(s):"The remote server returned and error :(407) proxy authentication is required."

:

 
PS>Set-ExecutionPolicy RemoteSigned -Scope CurrentUser 

Execution Policy Change 
The execution policy helps protect you from scripts that you do not trust. 
Changing the execution policy might expose you to the security risks described 
in the about_Execution_Policies help topic at http://go.microsoft.com/fwlink/ 
?LinkID=135170. Do you want to change the execution policy? 
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y 
PS>iex (New-Object Net.WebClient).DownloadString('https://get.scoop.sh') 
+0

도움이 될 것입니다 우리와 코드를 공유! – gvee

+0

분명히 코드가 제공하지 않는 인증이 필요한 프록시를 통해 연결하고 있습니다. –

+0

질문을 확인하십시오, 단계에 대한 자세한 내용을 추가했습니다 –

답변

1
  1. 기본 브라우저는 사용자가 사이트에 액세스 할 수있는 효과적인 프록시 설정이 의미하는 https://get.scoop.sh에 갈 수 있는지 확인합니다.

  2. 는 다음을 입력

    PS> $wc = new-object net.webclient 
    PS> $wc.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials 
    PS> iex $wc.downloadstring('https://get.scoop.sh') 
    
관련 문제