SCCM - Program failed (run time exceeded)

Hello. So we’ve been using the PSADT for years and it is great. But lately we’ve been seeing quite a few computers fail with Program failed (run time exceeded) errors in SCCM. For example, our last deployment had about 65 PCs fail with this error and about 1880 succeeded. What happens is one of the Show-InstallationProgress or Show-InstallationPrompt boxes remains on the screen. Users are unable to interact with this box in any way, they need to reboot the PC. Has anyone else seen this?

Here is the end of the log file from one of the PCs:

<![LOG[[Post-Installation] :: Close the installation progress dialog.]LOG]!><time=“22:03:32.647-300” date=“02-12-2021” component=“Close-InstallationProgress” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“7840” file=“Deploy-Application.ps1”>
<![LOG[[Post-Installation] :: Displaying custom installation prompt with the non-default parameters: [-NoWait:$true -ButtonRightText “OK” -Icon “Information” -Message “MModal Fluency Direct 10.0.6119.2113 has been successfully installed.”].]LOG]!><time=“22:03:32.915-300” date=“02-12-2021” component=“Show-InstallationPrompt” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“7840” file=“Deploy-Application.ps1”>
<![LOG[[Post-Installation] :: MModal_FluencyDirect_10.0.6119.2113_EN_01 Installation completed with exit code [0].]LOG]!><time=“22:03:32.989-300” date=“02-12-2021” component=“Exit-Script” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“7840” file=“Deploy-Application.ps1”>
<![LOG[[Post-Installation] :: Check if PowerPoint is in either fullscreen slideshow mode or presentation mode…]LOG]!><time=“22:03:33.005-300” date=“02-12-2021” component=“Test-PowerPoint” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“7840” file=“Deploy-Application.ps1”>
<![LOG[[Post-Installation] :: PowerPoint application is not running.]LOG]!><time=“22:03:33.021-300” date=“02-12-2021” component=“Test-PowerPoint” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“7840” file=“Deploy-Application.ps1”>
<![LOG[[Post-Installation] :: PowerPoint is running in fullscreen mode [False].]LOG]!><time=“22:03:33.034-300” date=“02-12-2021” component=“Test-PowerPoint” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“7840” file=“Deploy-Application.ps1”>
<![LOG[[Post-Installation] :: Display balloon tip notification asynchronously with message [Installation complete.].]LOG]!><time=“22:03:33.063-300” date=“02-12-2021” component=“Show-BalloonTip” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“7840” file=“Deploy-Application.ps1”>
<![LOG[[Post-Installation] :: [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe] is a valid fully qualified path, continue.]LOG]!><time=“22:03:33.078-300” date=“02-12-2021” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“7840” file=“Deploy-Application.ps1”>
<![LOG[[Post-Installation] :: Working Directory is [C:\Windows\System32\WindowsPowerShell\v1.0].]LOG]!><time=“22:03:33.087-300” date=“02-12-2021” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“7840” file=“Deploy-Application.ps1”>
<![LOG[[Post-Installation] :: Executing [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe [PowerShell ScriptBlock]]…]LOG]!><time=“22:03:33.094-300” date=“02-12-2021” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“7840” file=“Deploy-Application.ps1”>
<![LOG[[Post-Installation] :: NoWait parameter specified. Continuing without waiting for exit code…]LOG]!><time=“22:03:33.102-300” date=“02-12-2021” component=“Execute-Process” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“7840” file=“Deploy-Application.ps1”>
<![LOG[[Post-Installation] :: -------------------------------------------------------------------------------]LOG]!><time=“22:03:33.115-300” date=“02-12-2021” component=“Exit-Script” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“7840” file=“Deploy-Application.ps1”>
<![LOG[[Asynchronous] :: [App Deploy Toolkit Main] called with switch [-ShowInstallationPrompt].]LOG]!><time=“22:03:36.235-300” date=“02-12-2021” component=“PSAppDeployToolkit” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“8280” file=“AppDeployToolkitMain.ps1”>
<![LOG[[Asynchronous] :: Displaying custom installation prompt with the non-default parameters: [-Icon “Information” -Message “MModal Fluency Direct 10.0.6119.2113 has been successfully installed.” -ButtonRightText “OK”].]LOG]!><time=“22:03:36.490-300” date=“02-12-2021” component=“Show-InstallationPrompt” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“8280” file=“AppDeployToolkitMain.ps1”>
<![LOG[[Asynchronous] :: Installation action not taken within a reasonable amount of time.]LOG]!><time=“23:58:36.501-300” date=“02-12-2021” component=“Show-InstallationPrompt” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“8280” file=“AppDeployToolkitMain.ps1”>
<![LOG[[Asynchronous] :: Installation action not taken within a reasonable amount of time.]LOG]!><time=“01:53:36.491-300” date=“02-13-2021” component=“Show-InstallationPrompt” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“8280” file=“AppDeployToolkitMain.ps1”>
<![LOG[[Asynchronous] :: Installation action not taken within a reasonable amount of time.]LOG]!><time=“03:48:36.507-300” date=“02-13-2021” component=“Show-InstallationPrompt” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“8280” file=“AppDeployToolkitMain.ps1”>
<![LOG[[Asynchronous] :: Installation action not taken within a reasonable amount of time.]LOG]!><time=“05:43:36.518-300” date=“02-13-2021” component=“Show-InstallationPrompt” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“8280” file=“AppDeployToolkitMain.ps1”>
<![LOG[[Asynchronous] :: Installation action not taken within a reasonable amount of time.]LOG]!><time=“07:38:36.522-300” date=“02-13-2021” component=“Show-InstallationPrompt” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“8280” file=“AppDeployToolkitMain.ps1”>
<![LOG[[Asynchronous] :: Installation action not taken within a reasonable amount of time.]LOG]!><time=“09:33:36.532-300” date=“02-13-2021” component=“Show-InstallationPrompt” context=“NT AUTHORITY\SYSTEM” type=“1” thread=“8280” file=“AppDeployToolkitMain.ps1”>

Which toolkit version are you using?

3.8.3.

Thank you,
JimO

It’s always helpful to have some context when troubleshooting. From what you’ve described, it seems like one of those pesky Show-InstallationProgress or Show-InstallationPrompt boxes is just sticking around, refusing to budge, right? While I can’t claim to be a SCCM guru, I’ve had my fair share of deployment mishaps. Have you tried tweaking the parameters for those prompts to see if that helps?

Sometimes, a small adjustment can make a big difference.

It’s always helpful to have some context when troubleshooting. From what you’ve described, it seems like one of those pesky Show-InstallationProgress or Show-InstallationPrompt boxes is just sticking around, refusing to budge, right? While I can’t claim to be a SCCM guru, I’ve had my fair share of deployment mishaps. Have you tried tweaking the parameters for those prompts to see if that helps? Sometimes, a small adjustment can make a big difference. And hey, if you’re looking to expand your SCCM know-how, I stumbled upon this neat resource https://learnmesccm.com that might offer some insights. It’s like that one friend who overstays their welcome at a party!

Do you happen to use multiple show-installationprompt in your script? I’ve found that if I have two show-installationprompt in the same script and they are called within 10-15 seconds of each other one of them will fail to close. The workaround I use is to make sure there is sufficient time between the two prompts. Sometimes this means adding a small delay to the script (eg start-sleep -s 10) before the second show-installationprompt.