This is what worked for me https://rahuljindalmyit.blogspot.com/2023/09/removing-sophos-using-microsoft-intune.html
The application was not detected after installation completed successfully (0x87D1041C)
Hello,
I already feel pain from the fact that a simple task cannot be implemented normally.
The task is to remove Sophos. It would seem that I have a lot of options:
- Use a script (in Devices-Windows-Scripts)
- I can create an application that will explicitly remove the program using a script or Win32 application or script. And check if in was removed by script (check in servies or directory exist)
- It would be possible to create a compliance policy to check whether the application has been deleted (not works for Proffesional editions).
And all these wonderful ways don’t work.
I settled on adding a win32 application in which the exe file only performs the removal of the application. In the end I managed to get it to work. However, the check fails.
I'm checking with a script. If the file is not found, then exit 0, if the file is found, exit 1 (the application is not uninstalled). Or the same can be done with service checking.
But it doesn't work, I always get error 0x87D1041C.
It's very annoying why other applications work with script verification, but this doesn't work.
My script creates a control file so that I understand what's under the hood.
When I run the installation, it shows that the file was found and Exit 1. Well, after the removal is complete, it checks again and shows that the file was not found and Exit 0.
It would seem that everything is fine, but I get an error instead of success.
Please help me solve the prolem. Thank you.
1 additional answer
Sort by: Most helpful
-
ZhoumingDuan-MSFT 13,720 Reputation points Microsoft Vendor
2024-06-19T05:35:35.9233333+00:00 @Mountain Pond, Thanks for posting in Q&A.
From your description, I know you you're trying to uninstall Sophos by deploying an .exe program via Intune, but it's failing detection methods.
Based on my research, the error code means the application was not detected after installation completed successfully, you can check if there exist some related error message and then correct the detection rules in Intune to see whether the issue can be fixed. Or you can change another Detection rules about the application.
https://www.prajwaldesai.com/intune-win32-app-deployment-error-0x87d1041c/
Please try above information, if there is any update, feel free to let me know.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.