MDT 2013 Powershell script not working on deployment

Chris Stendall 96 Reputation points


I am currently working on setting up an MDT 2013 deployment in order to distribute Windows 10 as an image to multiple devices throughout the business I'm working in.

I have configured MDT to deploy an image with certain programs successfully pre-installed on it, these programs are:

  • Adobe Reader DC
  • Google Chrome
  • .Net framework 2.0-3.5.1
  • Office 365 Apps for enterprise

I'm currently trying to get it to install an older application which does not have a .MSI for me to use, only a .exe file. To get around this, I have created a powershell script which, among other functions, copies the files required for the installation across and performs a silent install in the background. This has been tested on computers joined to the domain and computers not joined to the domain, however when I attempt to add the script as an application in MDT, it fails every time with a rather generic error which doesn't seem to tell me very much.

After looking into this quite extensively I determined it might be the Execution policy causing a problem, however after injecting a registry key to set the policy to unrestricted I now receive a different error code, the error code is "Appliaction AppName returned an unexpected return code: 1" I cannot seem to find any further information about this, can anyone suggest anything for me to look at please?

Many thanks,

Chris Stendall

Windows Server Setup
Windows Server Setup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
183 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 329.6K Reputation points Microsoft MVP

    They're actively answering MDT questions in dedicated forums here.

    --please don't forget to Accept as answer if the reply is helpful--

    No comments