When running DFSRDiag, you get this error:
Access is denied when connecting to WMI services on computer
The access is denied message happens if you run DFSRDiag in a command prompt window that hasn’t been started in elevated administrator rights. To fix this, right click the command prompt icon and click Run as Administrator, to start the command prompt (instead of just double clicking the icon).