I’ve been using the PSADT for about a year to simplify my deployment process through SCCM CB. This is hands down one of the best tools I’ve come across to help with my deployments. However, lately, I’ve been running into issues with certain programs that will not install if I deploy through SCCM or if I launch PSExec and run as System. For instance, I’m trying to automate an installation with three components. The first, and the one that is failing is SQL Express 2016. If I launch the script using PS ISE as Admin, all three applications install with no issues. If I log in as myself, and run the standard Deploy-Application.exe -DeployType “Install”, from a command line, once again no issues. Switch over to PSExec to test under System context, the whole thing blows up with (e.g. [Installation] :: Execution failed with exit code [-2068578304].
Here is what I’m passing in the script:
Execute-Process -Path “$dirFiles\SQLExpressExtract\Setup.exe” -Parameters “/ConfigurationFile=SQLExpress2016ConfigFile.ini”, “/IAcceptSQLServerLicenseTerms”
Does anyone know if there is a way to get this to run with PSADT?