try
C:\Windows\System32\wbem\WMIC.exe /namespace:\root\microsoftdfs path dfsrreplicatedfolderconfig get replicatedfolderguid,replicatedfoldername
its running the wrong wmic in C:\Windows\System32\ i think if you dont put the right path in
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In Server 2016 I am trying to run "WMIC.EXE /namespace:\root\microsoftdfs path dfsrreplicatedfolderconfig get replicatedfolderguid,replicatedfoldername" from the command prompt and get This app cant run on your PC. Tried all the recommended steps: Capability, Check windows version, ran updates, ran disk repair, etc. and the problem still persist.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.
try
C:\Windows\System32\wbem\WMIC.exe /namespace:\root\microsoftdfs path dfsrreplicatedfolderconfig get replicatedfolderguid,replicatedfoldername
its running the wrong wmic in C:\Windows\System32\ i think if you dont put the right path in
Hello Freddy Domond,
Thank you for posting on the Microsoft Community forum.
Regarding your question, below are my suggestions:
(Note that modifying Group Policy settings may require administrator privileges.)
(1) Open the Group Policy Editor. You can find it by searching for "Group Policy Editor" in the Start menu.
(2) Navigate to "Computer Configuration" > "Windows Settings" > "Security Settings" > "Local Policies" > "Security Options".
(3) In the right-hand pane, find the "User Account Control: Run all administrators in Admin Approval Mode" option. If this option is enabled, it may be blocking WMIC.EXE from running.
(4) If this option is enabled, disable it or configure it as "Not Configured".
(5) Save and close the Group Policy Editor, and try running the WMIC.EXE command again.
I hope the information above is helpful.
If you have any concerns, please feel free to let me know.
Best Regards,
Bblythe Xiao