Short answer
Error 0x87D1041C means the install finished, but the app's detection rule did not find the app afterwards. Usual reasons: the rule checks a path, key, product code or version the installer did not create, a detection script failed its output check, or the app was removed or updated outside Intune. Compare the rule with one device.
If the app works and the status looks old or differs per user, read why Intune says failed when the app is installed.
What you see vs what it can mean
- You seeError 0x87D1041C on a device where the app worksIt could mean
Microsoft's description for this code on Windows: application installation succeeded but application is not detected. In plain words: the rule did not find what it looks for, in that exact place, version or form.[1][2]
What decides it: The detection rule's path, registry value, product code or version, compared with what is on one affected device.
- You see0x87D1041C on some devices, installed on othersIt could mean
The rule depends on something that differs between devices: the 32-bit or 64-bit registry view or path, a per-user install location when install behavior is User, or a different app version.[2]
What decides it: One failing and one working device with the same app and rule, side by side: version, path, registry view and install behavior.
- You seeYour detection script works when you run it, but Intune says not detectedIt could mean
Intune counts the app as installed only when the script exits with 0, writes to standard output (STDOUT) and writes nothing to the error stream (STDERR). A warning on STDERR, empty output, or a 32-bit versus 64-bit run can change the result.[2]
What decides it: The script's exit code, what it writes to STDOUT and STDERR, and the Run script as 32-bit process setting.
- You seeIt was installed before, and now shows 0x87D1041CIt could mean
Microsoft lists these reasons: the user uninstalled the app; the identity in the package does not match what the device reports; or a self-updating MSI changed its product version outside Intune.[1]
What decides it: Whether the app is still on the device, and its current version compared with the version the rule expects.
- You seeFailed, but the device's last check-in is oldIt could mean
The status may be out of date rather than a detection problem. The Device install status report shows when the device last synced with Intune.[4]
What decides it: The Last check-in column for that device, before you change the rule.
Check in this order
Confirm the code and how fresh the row is
In the Intune admin center, open Apps > All Apps, select the app, then Device install status. Read Status, Status details, Version and Last check-in for one affected device.[4]
Confirms itStatus details show 0x87D1041C and the last check-in is recent.Rules it outThe last check-in is old or the code is different. Then this may not be a detection problem.Read the detection rule exactly
Open the app's detection rules. Note the rule type (MSI, File, Registry or script), the exact path, key, value name, product code, operator and version, and the 32-bit setting. If there is more than one rule, all of them must be met.[2]
Confirms itYou know exactly what Intune looks for.Rules it outNothing yet. This step gives you the target for the next one.Check one affected device for that exact item
Look for the file, folder, registry value or MSI product code the rule names, in the same location the rule uses: 64-bit or 32-bit registry view, and the same folder.[2]
Confirms itThe item is missing, sits in the other registry view or folder, or has a different version, date or size than the rule expects.Rules it outThe item is present, in the same place, and matches the rule's operator and value.For a script rule, check exit code, STDOUT and STDERR
Run the detection script the way Intune does: 64-bit by default, or 32-bit if that option is set. Record the exit code and anything written to STDOUT and STDERR.[2]
Confirms itThe script exits with a nonzero code, writes nothing to STDOUT, or writes anything to STDERR.Rules it outThe script exits with 0, writes data to STDOUT, and writes nothing to STDERR.Check whether the app changed after it installed
Two of the reasons Microsoft lists are changes after install: the user removed the app, or a self-updating MSI changed its version outside Intune.[1]
Confirms itThe app is gone, or its version is newer than the version the rule checks.Rules it outThe app is present at the same version it had at install.Read the device's own logs if the answer is still unclear
From the app's installation details, use Collect diagnostics, or read the Intune Management Extension logs on the device. AppWorkload.log covers Win32 app deployment activity. AppActionProcessor.log tracks detection and applicability checks.[6][5][7]
Confirms itThe log shows the installer finished and the detection check after it did not find the app.Rules it outThe log shows the installer itself failed. That is an installer problem, not a detection problem.
Detection rule types: what Intune checks and what to compare
Built from Microsoft's description of each rule type. Use it to pick the one thing to compare on an affected device.[2][1]
| Rule type | What Intune checks | What to compare on one affected device |
|---|---|---|
| MSI | The MSI product code. The product version too, only when MSI product version check is set to Yes. | The product code registered on the device and, if the version check is on, the installed version. A self-updating MSI can move its version outside Intune. |
| File | A file or folder at a full path: whether it exists, or its date, version or size. Path variables expand in the 64-bit context unless Associated with a 32-bit app on 64-bit clients is Yes. | Whether the file is at that exact path, and whether its version, date or size passes the rule's operator. |
| Registry | A key or value at a full key path: whether it exists, or a string, integer or version. Searches the 64-bit registry on 64-bit clients unless Associated with a 32-bit app on 64-bit clients is Yes. | Which registry view holds the key, and the exact value name and data. |
| Custom script | Detected only when the script exits with 0 and writes data to STDOUT. Anything on STDERR means not installed. Runs as a 64-bit process unless set to 32-bit. | Exit code, STDOUT, STDERR and 32-bit or 64-bit run, with the same settings Intune uses. |
| More than one rule | The conditions of all rules must be met to detect the app. | Each rule on its own. One failing rule is enough to fail detection. |
What stays unknown
- Which reason applies, from the code alone. 0x87D1041C says detection did not match. It does not say which part of the rule failed.
- Why the installer wrote to a different place or version, when the device log does not say.
- Whether a self-updating app will change its version again after you fix the rule.
- Whether the device has run the corrected rule yet, until it checks in and reports a new status.
- Without the device's own logs, what happened on the device beyond the reported status. The report gives the code, not the installer's exit or the detection result line.
Fix it in Intune
These are Microsoft-supported steps. Make the change in Intune; the next sync shows whether it changed the result.
Correct the detection rule
Edit the app's detection rule so it names the path, key, value, product code or version the installer actually creates. If you use more than one rule, make sure every one can pass.[2]
Match the 32-bit or 64-bit setting to the app
For a 32-bit app on 64-bit devices, set Associated with a 32-bit app on 64-bit clients to Yes for File and Registry rules. For a script rule, set Run script as 32-bit process on 64-bit clients only if the script needs it.[2]
Fix the detection script output
Make the script exit with 0 and write a line to STDOUT only when the app is found, and keep STDERR empty. Microsoft recommends saving the script as UTF-8 with BOM.[2]
Decide how a self-updating app should be detected
An MSI rule checks the product version only when MSI product version check is Yes. If the app updates itself, decide whether the rule should require that exact version.[2][1]
If the user removed the app, let it come back the supported way
Microsoft says required apps are offered again automatically; for Win32 apps, Intune offers the app again within about 24 hours. A Win32 app assigned as available is not reinstalled automatically; the user installs it again from the Company Portal.[1][2][3]
Sync the device and check the status again
Sync from the device in Company Portal (Settings > Sync) or from the device in the Intune admin center. A sync starts both the MDM and the Intune Management Extension check-in, including app detection. For required apps that are not detected, Intune offers the app again within about 24 hours.[7][2]
In SentVora
Deployment Reliability lists the Win32 apps that need attention first and keeps a detection failure apart from an installer failure.
- When Intune reports 0x87D1041C for a device that checked in recently, SentVora shows it as failing at detection after install, kept apart from installer failures. A device with an old check-in is shown as stale instead.
- Upload the device's Intune diagnostic ZIP (up to 25 MB and 250 entries, malware-scanned before it is read) to see the latest install try step by step from the device's own logs.
- Detection is never inferred from an installer failure or from missing evidence. When the evidence does not support a stage, it shows UNKNOWN.
- If a detection rule change was recorded near the failures, Change Intelligence shows it as correlation: a lead to check, not proof of cause.
- You change the rule in Intune. The next sync, manual or every 6 hours, shows whether the status changed.

Watch the 75-second walkthroughOne Win32 app that shows Failed in Intune, followed to each device's result, what one device's own logs show, what stays unknown and the change before the failures.Sample dataFAQ
Does 0x87D1041C mean the install failed?
My detection script works when I run it. Why does Intune say not detected?
Why does it fail on some devices and work on others?
Should I just reinstall the app?
Can SentVora fix the detection rule?
Sources
- App installation error codes for Microsoft IntuneMicrosoft Learn
- Add and assign Win32 apps to Microsoft IntuneMicrosoft Learn
- Win32 app management in Microsoft IntuneMicrosoft Learn
- Monitor app information and assignmentsMicrosoft Learn
- Troubleshooting app installation issues with IntuneMicrosoft Learn
- Troubleshooting Win32 app installations with IntuneMicrosoft Learn
- Understand Microsoft Intune Management ExtensionMicrosoft Learn
Microsoft sources checked 28 November 2026.
Can I trust this? SentVora reads Intune through 7 read-only Microsoft Graph permissions and never changes your tenant. Read how read-only access, tenant isolation and retention work, or review the permissions.
Published 28 November 2026Updated 28 November 2026Report a correction