The WinRM client cannot process the request RRS feed

  • Question

  • Hello,

    I am developer and I connect to exchange server via runspace.  I get an error message below. Please help me to fix this.

    The WinRM client cannot process the request. The connection string contains an unsupported transport. Valid transports are "http" or "https". Change the connection string and try the request again



    Friday, December 14, 2012 3:14 PM

All replies

  • The codes below are working for one server but when I tried connecting to other Exchange server and it failed .....


     private static void GetConnection()
                    string password = @"myPassword";
                    string userame = @"myUserName";
                    SecureString securePassword = new System.Security.SecureString();
                    foreach (char c in password.ToCharArray())
                    PSCredential credential = new PSCredential(userame, securePassword);
                    WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri("https://ExchangeserverName/PowerShell"), "", credential);
                    connectionInfo.AuthenticationMechanism = AuthenticationMechanism.Basic;
                    //connectionInfo.ProxyAuthentication = AuthenticationMechanism.Negotiate;
                    connectionInfo.SkipCACheck = true;
                    connectionInfo.SkipCNCheck = true;
                    connectionInfo.SkipRevocationCheck = true;
                    remoteRunspace = RunspaceFactory.CreateRunspace(connectionInfo);
                catch (Exception ex)
                    throw ex;

    Monday, December 17, 2012 6:00 PM