title: WMI The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
body: <p>My application requirement is like below. Application will run on domain admin system which will ping all machine under that domain, it will take disk drive, CPU and RAM details from all domain systems.</p>
  
  <p>Whenever I'm trying to ping machine I'm getting error that</p>
  
  <blockquote>
    <p>"The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)"</p>
  </blockquote>
  
  <p>Code I'm using to connect remote machine is</p>
  
  <pre><code>ConnectionOptions options = new ConnectionOptions();
  options.EnablePrivileges = true;
  options.Impersonation = ImpersonationLevel.Impersonate;
  options.Username = System.Configuration.ConfigurationSettings.AppSettings["AccessUserName"].ToString();
  options.Password = System.Configuration.ConfigurationSettings.AppSettings["AccessPassword"].ToString();
  options.Authority = "ntlmdomain:" + System.Configuration.ConfigurationSettings.AppSettings["DomainName"].ToString();
  options.Authentication = AuthenticationLevel.Packet;
  ManagementScope scope = new ManagementScope("\\\\" + sMachineIP + "\\root\\cimv2", options);
  scope.Connect();
  </code></pre>