RPC Server is Unavailable

Symptom: RPC server is unavailable

The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

RPC server is unavailable

Solution: Add firewall exceptions

  1. Log in to your target machine.
  2. Verify that the WMI traffic is enabled, if not, add an exception, via the firewall UI, or command-line:

    Using firewall UI:
    1. Control Panel > Windows Firewall > Allow an app or feature through Windows Firewall
    2. Click on 'Change settings' if available
    3. In the Allowed apps and features: pane, select Windows Management Instrumentation (WMI) and apply it to your network setup (for example, select Domain if both the host and the target use the same domain)
      NOTE: for more information about Domain/Private/Public please consult your system administrator and/or MSDN documentation on this topic.
    4. Click OK.


    Using command-line:

    netsh advfirewall firewall set rule 
    group="windows management instrumentation (wmi)" new enable=yes 
  3. Launch the debugger again.
    If the RPC server is still unavailable, you may need to open the DCOM TCP port 135. To open the port, add an exception:
    netsh advfirewall firewall add rule dir=in name="DCOM"
    program=%systemroot%\system32\svchost.exe service=rpcss action=allow protocol=TCP localport=135

For more information, see Connecting to WMI Remotely Starting with Windows Vista at https://docs.microsoft.com/en-us/windows/desktop/WmiSdk/connecting-to-wmi-remotely-starting-with-vista.