2017-10-09 6 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') 
    
関連する問題