Sometimes you can get the following error:
The RPC server is unavailable. (Exception from HRESULT: 0x800706BA).
This means that either your RPC service is not working correctly, or that your RPC packets are blocked by a firewall.
- Try the
Test-NetConnectioncmdlet to check if the port 135 is open.
(Alternatively you can use the telnet client)
Test-NetConnection -ComputerName MyComputer -Port 135
- Check all your firewalls’ (network, computer, antivirus) logs to see if the protocol is blocked
- Restart the remote computer to be sure all RPC services are working fine
- If you can, try other protocols. For example, the
Restart-Computercmdlet has the Protocol parameter and you can use WSMan instead of the default value DCOM (over RPC).
[RCP]: Remote Procedure Call
[WSMAN:]: Web Services-Management
[DCOM]: Distributed Component Object Model