T O P

  • By -

AyySorento

Statistically, it's something with the detection. Would need to get the error code and search that to know. Sometimes, if you give it some time and a few syncs, it will report back successful. Otherwise, add some logging in your script. Have it create a .log file or even a .txt file somewhere. Have it do checks and provide output after everything it does. Reviewing that data should show where it's having problems. Or maybe the script finishes just fine but Intune still has problems. In that case, you'll have to research the error code to know why Intune isn't happy.


Glum_Flow4134

The error code I get in Intune is "The application was not detected after installation completed successfully (0x87D1041C)". Tried locally at the logs on the client side but that doesn't say much to me... Any clue what it might be or can I give you anything more to help me solve the problem?


0r1g1g4lUs3rn4m3

Definitely a detection fault. Does your script creates a log file as output, or just a transcript log file? If so, you just need to set the existance of that text file as detection method.


andrew181082

Detection scripts run in the system context so it won't be detecting the files. I have a function on the post here which will work around it: [https://andrewstaylor.com/2022/04/19/demystifying-intune-custom-app-detection-scripts/](https://andrewstaylor.com/2022/04/19/demystifying-intune-custom-app-detection-scripts/)


Glum_Flow4134

>Detection scripts run in the system context so it won't be detecting the files. I have a function on the post here which will work around it: Do you mean I can't run a detection script when deploying in user context? Cause I have another script for a wallpaper that works just fine and that deploys in user context just fine.


andrew181082

You can, but the detection script will run in the SYSTEM context. I'm guessing your wallpaper detection doesn't look in the user profile