Forum Discussion
Installing programs with Powershell not always consistant
Hi Ronald,
Intune does report a success as soon as the script is successful executed from Intune perspective. If you like to get en error in the console when something fails during msi install you must write en explicit error with write-error.
I have compiled some information how to deal with Intune in regards of PowerShell scripts and common questions here:
Also I have a PS template for installing apps via PS script with correct error handling:
https://github.com/okieselbach/Intune/blob/master/ManagementExtension-Samples/IntunePSTemplate.ps1
best,
Oliver
Hi Oliver
Thank you again for your response. I will look into your deep dive information. I already know about these pages but haven't had the time yet to look in to it.
In the meantime can you confirm that my temporary solution with a do while loop will assure that an application is installed?
- Sep 10, 2018
Remember the scripts have a timeout of 10 min. so if your retries taking to long it will report failure. Also your loop is not restricted it has the potential to loop forever. I would test my install very well and do nothing like loops, I would write out errors as described in my PS template.