title: Connect to remote server using winrm without adding the server to TrustedHosts
body: <p>I have been struggling to deal with winrm and TrustedHosts but to no avail. After some experimenting I found out the this field of winrm/config/client is limited up to 1023 symbols which is way not enough especially if adding hosts by their ipv6.
  I quote from <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa384372%28v=vs.85%29.aspx" rel="nofollow">Installation and Configuration for Windows Remote Management</a>: <code>A trusted hosts list should be set up when mutual authentication cannot be established.</code></p>
  
  <p>Also in the same file the text says: <code>Other computers in a workgroup or computers in a different domain should be added to this list.</code> So I thought that this implies that as long as two computers are in the same domain, I should be able to access one of them from the other using winrm.</p>
  
  <p>I tried to add two computers to a test domain and the executed:</p>
  
  <blockquote>
    <p>winrm get winrm/config/client -r:192.168.100.1 -u:user -p:pass</p>
  </blockquote>
  
  <p>From one of them to the other, but this failed with the error:</p>
  
  <pre><code>WSManFault
      Message = The WinRM client cannot process the request. If the authentication
   scheme is different from Kerberos, or if the client computer is not joined to a
   domain, then HTTPS transport must be used or the destination machine must be ad
  ded to the TrustedHosts configuration setting. Use winrm.cmd to configure Truste
  dHosts. You can get more information about that by running the following command
  : winrm help config.
  
  Error number:  -2144108316 0x803380E4
  The WinRM client cannot process the request. If the authentication scheme is dif
  ferent from Kerberos, or if the client computer is not joined to a domain, then
  HTTPS transport must be used or the destination machine must be added to the Tru
  stedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. You ca
  n get more information about that by running the following command: winrm help c
  onfig.
  </code></pre>
  
  <p>After adding 192.168.100.1 to TrustedHosts the query above succeeds. So my question is: is it possible to use winrm between two hosts without modifying TrustedHosts? Setting Trusted hosts to <code>*</code> is not an option for me.</p>