Getting error This app can't run on your PC when trying to run WMIC.EXE

Anonymous
2023-12-04T16:41:53+00:00

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.

Windows for business | Windows Server | User experience | Remote desktop services and terminal services

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.

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-12-05T07:48:22+00:00

    Hello Freddy Domond,

    Thank you for posting on the Microsoft Community forum.

    Regarding your question, below are my suggestions:

    1. Check if the WMIC.EXE file is corrupted or damaged. You can try to repair or reinstall the Windows Management Instrumentation (WMI) service to see if that resolves the issue.
    2. Check if there is any security software or antivirus software on your system that may be blocking the execution of WMIC.EXE. You can try temporarily disabling these software and then try running WMIC.EXE again.
    3. Check if there are any corrupt system files or drivers on your system. You can use System File Checker (SFC) and Device Manager to check and fix these issues.
    4. Check if the WMIC.EXE file is being blocked by your Group Policy settings. You can try to modify your Group Policy settings to allow WMIC.EXE to run.

    (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

    0 comments No comments
  2. Anonymous
    2024-02-28T08:28:57+00:00

    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

    0 comments No comments