wmic /namespace:\\root\microsoftdfs path DfsrReplicatedFolderInfo get replicatedFolderName, State
If I run that command on a 2008 R2 server the command runs correctly.
If I run that command on a 2012 R2 server I get an error "access denied". And I've tried it with an account that is a local admin and account that is local and domain admin. Same thing.
What causes this?
Edit: I also noticed that if I run the dfsrdiag backlog command I get a similar error:[ERROR] Access is denied when connecting to WMI services on computer: