Application deployment

0x87D00325: The application was still detected after uninstall completed

The uninstall command ran, but the detection method still finds the application. The uninstall did not remove what the rule checks.

Hex code0x87D00325
Decimal-2016410843
Logs to readAppEnforce.log, AppDiscovery.log, AppIntentEval.log

What 0x87D00325 means

Configuration Manager shows "The application was still detected after uninstall completed". The decimal form is -2016410843. You see it in Software Center and in Monitoring > Deployments.

The client ran the uninstall command of the deployment type. Then it ran the detection method again. The rule still returned "installed", so the client reports the uninstall as failed.

Common causes

  • The uninstall command is wrong or returns success without removing the software.
  • The uninstaller leaves behind the file or registry key that the detection rule checks.
  • The uninstaller starts a second process and exits before that process finishes.
  • A different version of the product is installed, and the uninstall command targets another product code.
  • The detection rule is too broad and also matches another product.

How to fix 0x87D00325

  1. Check the uninstall command and its exit code

    Open C:\Windows\CCM\Logs\AppEnforce.log on the client. Find the uninstall command line and its exit code. Run the same command by hand in an elevated prompt on a test computer. Confirm that the software is really gone.

  2. See what the detection rule still finds

    Open AppDiscovery.log and find your deployment type. Then look at the client. Check the file, registry value or MSI product code named in the Detection Method tab. If a leftover file causes the match, change the rule to something the uninstaller always removes.

  3. Use the right product code

    For MSI software, compare the product code in the uninstall command with the product code on the client. Each version of a product often has its own code. Use the command below to list the installed codes.

  4. Make the uninstaller wait

    If the uninstaller returns at once and keeps working in the background, detection runs too early. Use the vendor's wait or silent switch, or wrap the command in a script that waits for the process to end.

Commands that help

List installed products with their uninstall strings · PowerShell
Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* -ErrorAction SilentlyContinue |
    Select-Object DisplayName, DisplayVersion, PSChildName, UninstallString |
    Sort-Object DisplayName
Got a different code?

Turn any hex or decimal error code into its meaning, or search every code on this site.

Error code lookup All SCCM error codes

✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.