Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Remote Uninstall Successful - Target Application Still Installed On Endpoint

Hi there,

I am using Deploy to remotely uninstall a custom package that I've built. When running the uninstaller, it says the uninstall completed successfully, however after a refresh scan and checking the endpoint, the target application is still installed and functional on the endpoint.

Checking this I don't think this is quite the issue that I'm having (this one seems to be the opposite - a confirmed uninstalled application still showing as installed in Inventory/Deploy).

Any ideas? 




Date Votes
  • If you run the uninstall command locally on a target machine is it successful and does it show removed in the Control Panel?

  • I can run the uninstall locally (outside of PDQ > through control panel or using the uninstall .exe file that comes with the program, PowerShell etc) and there is no issue. If I try the same uninstall on the same machine I'm running PDQ Deploy on (same program, same package etc) I get the same problem. But it is only with this particular package through PDQ.

    I am able to remotely uninstall and confirm uninstall works with other packages (both custom and ones included in the package library) through PDQ.

  • My question is PDQInventory >> Machine, if you right click the program to be removed, you should see the uninstall command that will be invoked.  If you copy that command and login to the target machine via RDP or whatever and execute that command, does the uninstall work as expected?

  • The default command shown in PDQInventory > [target machine] > right click > uninstall > execute returns this:

    Return code: 1

    'C:\Program' is not recognized as an internal or external command,
    operable program or batch file.

    When I modify the command to point to the uninstall .exe file and adding quotations to account for the spaces in the directory name (the local directory on the endpoint I am trying to uninstall the program from), in PDQ the uninstall runs successfully, but the program remains on the machine.

    tl;dr I can uninstall it outside of PDQ but not in PDQ even though PDQ says it did uninstall successfully.

  • Can you post a screenshot of the uninstall command?

  • This is the default. I added quotations as it returns "C:\Program is not recognized as an internal or external command" error without quotations around the entire directory. Even with the quotes, this default command fails the uninstall.

    This is the modified one that runs successfully - yet the program is not removed from the endpoint.

  • Are there any command line switches below that?

    If you login to that machine via RDP and run the command with a /?, will it give you a list of switches for a silent uninstall?

  • The silent install/uninstall parameter is /S - and no, I hadn't included it previously. Just tried it now and viola, issue resolved. I don't know why I didn't think of that before. Thank you for your help!

  • Good deal!