当前未在客户端配置中禁用未加密的流量 [英] Unencrypted traffic is currently disabled in the client configuration

查看:365
本文介绍了当前未在客户端配置中禁用未加密的流量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我需要帮助来解决问题...

若要使用C#连接并执行Exchange Server 2010管理查询,我正在尝试以下代码.但是我得到了以下异常&我无法前进.

Hello I need a help to solve an issue...

To connect and execute exchange server 2010 management queries using C#, I was trying the following code. But I got the following Exception & I am unable to move forward.

string password = "abc123";
string userName = @"india.local\Administrator";
SecureString ss = ConvertToSecureString(password);
PSCredential creds = new PSCredential(userName, ss);
WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri("http://192.168.1.194/powershell?serializationLevel=Full"), "http://schemas.microsoft.com/powershell/Microsoft.Exchange", creds);

connectionInfo.AuthenticationMechanism = AuthenticationMechanism.Basic;

Runspace runspace = System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(connectionInfo);

runspace.Open();



这是我的例外.



Here is my exception.

Connecting to remote server failed with the following error message : The WinRM client cannot process the request. Unencrypted traffic is currently disabled in the client configuration. Change the client configuration and try the request again. For more information, see the about_Remote_Troubleshooting Help topic.



问候
Sebastian



Regards
Sebastian

推荐答案



请在SO处阅读此主题,它也应该对您有用:

http://stackoverflow.com/questions/1469791/powershell- v2-remoting-how-do-you-enable-uncrypted-traffic [
Hi,

please read this topic at SO, should also work for you:

http://stackoverflow.com/questions/1469791/powershell-v2-remoting-how-do-you-enable-unecrypted-traffic[^]

Regards


这篇关于当前未在客户端配置中禁用未加密的流量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆