CPM - RPC server is unavailable

CPM - RPC server is unavailable

338
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 12:58 PM


Symptom


In any situation where WMI calls are made, you may be presented with an error stating "RPC Server Unavailable."
CACPM559E Auto-detection - Machine scan of <Usage> on remote machine <Machine Name> failed. AD Process ID: <AD Process ID>, Name: <AD Process Name>. (Error: Failed to connect to wmi path root\cimv2 on remote machine <Machine Name> with user <User name> at domain <Domain Name>. Error: 0x800706ba Message: The RPC server is unavailable.)
Error: 0x800706ba Mesage: The RPC server is unavailable.


Environment


10.5;10.10;11.5;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM) CPM

Cause


I. RPC related services are not running
II. Firewall is blocking RPC ports
III. File & Printer Sharing is not enabled on the NIC of the target server


Resolution


On the target server, attempt to run the command "winrm quickconfig", this will quickly diagnose possible service issues or configuration issues with the Windows Remote Management configuration and alert you to any issues that may be present. Please also review the steps below to attempt other manual solutions.

I. RPC related services are not running
1. Log on to the target server

2. Right click on the task bar and select "Start Task Manager"

3. In the "Services" tab, ensure the following services are running
 RPCss
 DcomLaunch
 Winmgmt

II. Windows Firewall is blocking RPC ports
1. Log on to the target server

2. Open Windows Firewall

3. Ensure that the following inbound rules are enabled
    a. Terminal Services - WMI (DCOM-In) TCP/135
    b. Terminal Services - WMI (TCP-In) TCP/RPC Dynamic Ports
    c. Terminal Services (NP-In) TCP/445
    d. Terminal Services (RPC) TCP/RPC Dynamic Ports
    c. Terminal Services (RPC-EPMAP) TCP/RPC Dynamic Ports

4. If some of these rules do not exist, you can create them by:
    a. Click "New Rule"
    b. Select "Custom" and click next
    c. Select "All Programs" and click next
    d. Set Protocol Type to TCP
    e. Set Local Port to "Specific Port" and enter the port number in the text box, or select "RPC Dynamic Ports"
    f. Leave "Remote Port" set to "All Ports" and click next
    g. Enter an IP Scope if you desire one, click next
    h. Select "Allow Connection" and click next
    i. Select the profiles you wish to enable the connection over and click next
    j. Enter the name and click "finish"

5. While there are no longer many Windows Sewrver 2003 machines in use (given its 2015 EOL), you may need to enable RemoteAdmin through the local firewall for these machines if applicable to your environment.
       On the target machine, open a command prompt and run "call netsh firewall set service RemoteAdmin enable"
       Network Firewall is blocking RPC Ports
       RPC starts its handshake on port 139, but after that it moves to dynamic ports to continue its communication. 
      
Network firewalls may be blocking all traffic among these ports.  Some firewalls are able to allow RPC traffic across all port ranges, while others are not.  If your firewall allows RPC traffic to pass through higher port ranges, enable that setting.  If you must open specific ports on your firewalls to enable RPC functionality you can use the following KB article to dictate exactly what ports RPC will communicate over on your server: http://support.microsoft.com/kb/154596
       File & Printer sharing is not enabled on the NIC of the target server
       View the properties of the NIC and ensure that "File & Printer Sharing" is enabled.


Additional Information


Details

SYMPTOM:

In any situation where WMI calls are made, you may be presented with an error stating "RPC Server Unavailable." 
CACPM559E Auto-detection - Machine scan of <Usage> on remote machine <Machine Name> failed. AD Process ID: <AD Process ID>, Name: <AD Process Name>. (Error: Failed to connect to wmi path root\cimv2 on remote machine <Machine Name> with user <User name> at domain <Domain Name>. Error: 0x800706ba Message: The RPC server is unavailable.)
Error: 0x800706ba Mesage: The RPC server is unavailable.
 
PROBLEM: 
I. RPC related services are not running
II. Firewall is blocking RPC ports
III. File & Printer Sharing is not enabled on the NIC of the target server

SOLUTION:
On the target server, attempt to run the command "winrm quickconfig", this will quickly diagnose possible service issues or configuration issues with the Windows Remote Management configuration and alert you to any issues that may be present. Please also review the steps below to attempt other manual solutions.

I. RPC related services are not running
1. Log on to the target server
2. Right click on the task bar and select "Start Task Manager"
3. In the "Services" tab, ensure the following services are running
     a. RPCss
     b. DcomLaunch
     c. Winmgmt

IIa. Windows Firewall is blocking RPC ports
1. Log on to the target server
2. Open Windows Firewall
3. Ensure that the following inbound rules are enabled
     a. Terminal Services - WMI (DCOM-In) TCP/135
     b. Terminal Services - WMI (TCP-In) TCP/RPC Dynamic Ports
     c. Terminal Services (NP-In) TCP/445
     d. Terminal Services (RPC) TCP/RPC Dynamic Ports
     c. Terminal Services (RPC-EPMAP) TCP/RPC Dynamic Ports
4. If some of these rules do not exist, you can create them by:
     a. Click "New Rule"
     b. Select "Custom" and click next
     c. Select "All Programs" and click next
     d. Set Protocol Type to TCP
     e. Set Local Port to "Specific Port" and enter the port number in the text box, or select "RPC Dynamic Ports"
     f. Leave "Remote Port" set to "All Ports" and click next
     g. Enter an IP Scope if you desire one, click next
     h. Select "Allow Connection" and click next
     i. Select the profiles you wish to enable the connection over and click next
     j. Enter the name and click "finish"
5. On Server 2003 machines, you may need to enable RemoteAdmin through the local firewall.
     a. On the target machine, open a command prompt and run "call netsh firewall set service RemoteAdmin enable"

IIb. Network Firewall is blocking RPC Ports
RPC starts its handshake on port 139, but after that it moves to dynamic ports to continue its communication.  Network firewalls may be blocking all traffic among these ports.  Some firewalls are able to allow RPC traffic across all port ranges, while others are not.  If your firewall allows RPC traffic to pass through higher port ranges, enable that setting.  If you must open specific ports on your firewalls to enable RPC functionality you can use the following KB article to dictate exactly what ports RPC will communicate over on your server: http://support.microsoft.com/kb/154596

III.  File & Printer sharing is not enabled on the NIC of the target server
View the properties of the NIC and ensure that "File & Printer Sharing" is enabled.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001VLBCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail