Friday, April 3, 2020

SCCM Client Agent Installation Error : 'Unable to connect to WMI on remote machine "Machine.mydomain.com", error = 0x800706ba.'

Issue:
Sometimes we encounter the below given error in the CCM.log, while installing the SCCM client agent using the Client Push method:


The error code 0x800706ba translates to 'RPC Server is unavailable'


Probing:

Generally, this situation should not arise if we have the following Inbound and Outbound Ports are open on the Windows Firewall:

Inbound Firewall Ports
Outbound Firewall Ports
I also tried to enable the ports using the predefined set of ports for required services but that also didn't work.



In my case, even when I had the above mentioned Inbound and Outbound ports already open on the firewall, I was still getting the error '---> Unable to connect to WMI on remote machine "Client1.Lab.mtayal.com", error = 0x800706ba'

To rule out any possibility I also tried to connect to the Client1's WMI remotely from the SCCM site server but still got the same error:


Solution:

To find the correct port that would make it work I manually enabled all the ports using the RPC Service on the client machine. And voila !! I could connect to the WMI on the client machine remotely.
I knew it's not recommended to leave all the RPC ports open on the client machine but also suspected that it could be more than one RPC ports that made it work.

To narrow down to the correct port/ports, I started disabling each RPC port and check the connection from the SCCM Server and finally concluded that it's the 'Remote Scheduled Task Management (RPC)' port which is making the difference.



As soon as the port was enabled a connection could be established and client installation could be completed. 

Hope it helps!!