title: WMI: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) throws when try to connect to remote machine
body: <p>I'm using the following code to connect to remote machine using WMI:</p>
  
  <pre><code>   ConnectionOptions connOptions = new ConnectionOptions();
              connOptions.Impersonation = ImpersonationLevel.Impersonate;
              connOptions.EnablePrivileges = true;
              connOptions.Username = "admin";
              connOptions.Password = "password";
              ManagementScope scope = new ManagementScope(String.Format(@"\\{0}\ROOT\CIMV2", remoteMachine), connOptions);
              scope.Connect();
  </code></pre>
  
  <p>I'm getting the following exception: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)</p>
  
  <p>Checked all steps described <a href="http://www.s-code.com/kayako/index.php?_m=knowledgebase&amp;_a=viewarticle&amp;kbarticleid=14" rel="nofollow noreferrer">in this knowledgebase article</a>, everything is OK on remote machine. </p>
  
  <p>User is Administrator on remote machine. </p>
  
  <p>Tried Wbemtest tool, the same result</p>
  
  <p>Does anyone has an idea what is happening?</p>