Hello!
I’m new to PSADT and just deployed our first application using v4 with MECM. 210 successful installations. However, I’ve had 4 users so far get this error:
The AppEnforce.log shows the exact logging info for a failed vs a successful install with only the exit codes being different. The PSADT log file [for Invoke-AppDeployToolkit.exe] doesn’t give much direction on what the issue could be either:
Commencing invocation of C:\name\ccmcache\f1\Invoke-AppDeployToolkit.ps1.
Administrator rights are required. The verb 'RunAs' will be used with the invocation.
No '-File' parameter specified on command-line. Adding parameter '-File "C:\name\ccmcache\f1\Invoke-AppDeployToolkit.ps1"'...
Executable Path: C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe
Arguments: -ExecutionPolicy Bypass -NonInteractive -NoProfile -NoLogo -WindowStyle Hidden -File "C:\name\ccmcache\f1\Invoke-AppDeployToolkit.ps1"
Working Directory: C:\name\ccmcache\f1\
An error occurred while running Invoke-AppDeployToolkit.ps1. Exit code: 1
I saw another post with a similar error, and the suggestion was that there might be a typo in the script somewhere. I don’t feel like this is the case given that it works for the majority of our users. The interesting thing for me is, when I manually install the app using cmd/msiexec, I run into an issue where Windows complains that it can’t close all apps (explorer). This wasn’t necessary in all my testing or the other successful installs. I feel like this makes it more of some Windows issue, but I’m never given enough time on the problem machines to track it down further.
I would greatly appreciate some advice on how to track down what the issue could be, please. I’m concerned with further use of PSADT if I can’t resolve this. Will these 4 users/computers be putting in tickets for every install using PSADT? Luckily, it’s only 4 so far, but we do have 40 more machines that haven’t reported success yet, so if there are more and they just haven’t complained yet, that could potentially overwhelm our small team (me). ![]()
A side question to this: is it possible to hide this error without making the deployment completely silent? I would like if this error window doesn’t pop up and it just quietly fails in Software Center for our users. That might not be possible, since by default, I want this to be an interactive installation, but would like confirmation that it’s not, please.
