Not sure if I'm asking this in the correct place, but here we go.
We monitor dfs replication using a script that runs dfsrdiag, and it has been failing with "Failed to connect to WMI Services on computer %RemoteComputerName%", if you check the System event log, when this fails there is a DCOM error 10028 "DCOM was unable to communicate with the computer %RemoteComputerName% using any of the configured protocols; requested by PID 10c8 (C:\Windows\system32\dsfrdiag.exe)
The computer that the script is running on is a Server 2012 R2 DC/file server. It has no FSMO roles. The far end server is a 2008 R2 file server. Neither server can communicate in this manner with each other. They are able to ping each other (on different sites/subnets), Windows firewalls are disabled and all traffic is permitted across the hardware firewalls in place.
If I reboot the 2012 server, I am able to successfully run the dfsrdiag command for a short period before it starts failing again. Please can someone point me in the right direction to get this fixed, I've not yet found anything that will resolve this issue.