2017-11-07 23 views
0

私は可能な限りWindowsノードを有効にしています。これについては、以下のコマンドを使用してWindows 7でhttpとhttpsリモートセッションを有効にしています。HTTPセッションまたはHTTPSリモートセッションを確立できません

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://github.com/ansible/ansible/raw/devel/examples/scripts/ConfigureRemotingForAnsible.ps1'))" 

私はオフィスで以下のエラーが発生しています。

私にこれを教えてもらえますか?

別のノートパソコンの家では正常に動作しています。

set http_proxy=http://lsl5kor:N%[email protected]:8080/ 
set https_proxy=http://lsl5kor:N%[email protected]:8080/ 

set http_proxy=http://lsl5kor:[email protected]@jk-proxy-apac.india.com:8080/ 
set https_proxy=http://lsl5kor:[email protected]@jk-proxy-apac.india.com:8080/ 

set HTTP_PROXY=http://lsl5kor:[email protected]@jk-proxy-apac.india.com:8080/ 
set HTTPS_PROXY=http://lsl5kor:[email protected]@jk-proxy-apac.india.com:8080/ 

set HTTP_PROXY=http://lsl5kor:N%[email protected]:8080/ 
set HTTPS_PROXY=http://lsl5kor:N%[email protected]:8080/ 

私は上記のすべての詳細を試してみました... STIL

アップデート機能していない:

はそう、接続作成した(ログ記録を

+  Throw "Unable to establish an HTTP or HTTPS remoting session." 
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : OperationStopped: (Unable to estab...moting session.:String) [], RuntimeException 
    + FullyQualifiedErrorId : Unable to establish an HTTP or HTTPS remoting session. 

私は、以下のオプションを使用してみましたに)。 Windowsマシンのイベントログの下に表示されました

The WinRM service has received an unsecure HTTP connection from hostname. 

This is not a secure configuration. 

User Action 
Set AllowUnencrypted to False in WinRM configuration to ensure packets are encrypted on the wire. 

ありがとうございます。

答えて

1

プロキシの背後にいる可能性があります。あなたはControl Panel->Internet Options->Connections->LAN Settings->Proxy serversは後藤ができ

set http_proxy=IP:Port 
set https_proxy=IP:Port 

をまたは:その場合は、最初にプロキシを設定してみてください。すべて一緒に

set http_proxy=IP:Port 
set https_proxy=IP:Port 

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://github.com/ansible/ansible/raw/devel/examples/scripts/ConfigureRemotingForAnsible.ps1'))" 
+0

セットHTTP_PROXY =のhttp:// lsl5kor:N%[email protected]:8080/ セットHTTPS_PROXY =のhttp:// lsl5kor:N% [email protected]:8080/ http_proxy = http:// lsl5kor:N @ llapat12 @ jk-proxy-apac.india.com:8080/ の設定https_proxy = http:// lsl5kor :N @ lapat12 @ jk-proxy-apac.india.com:8080/ HTTP_PROXY = http:// lsl5kor:N @ llapat12 @ jk-proxy-apac.india.com:8080/ HTTPS_PROXY = http: //lsl5kor:[email protected]@jk-proxy-apac.india.com:8080/ セットHTTP_PROXY =のhttp:// lsl5kor:N%[email protected]:8080/ 私はまだ – sri

+0

Uはproxifierを試すことができます動作していない...上記のすべての詳細を試してみました 、 HTTPS ://www.proxifier.com/download.htm。 プロキシをポイントするように設定します。それはあなたのために残りの世話をします。 –

+0

プロキシーに渡されたプロキシー..テストで問題はないようです – sri

関連する問題