20 September 2011

MDT/SCCM 2010 - Running Applications Installations under different credentials

You may have an application that needs special credentials when installing during the MDT deployment. As you have seen, there is no where to enter these credentials in the Applications section. There is the runas.exe, but the password cannot be passed through the command line as it demands manual entry. VBScript can be used in the installation package, but do you want to expose the password on the network?

You can use PsExec.exe to install the application under a specified credential. It is available for download here. Once it is downloaded, you can do one of the following: 1) add a task sequence in MDT to install the executable in the %SYSTEM32% directory on the target machine or 2) Place the PsExec.exe on a network share that will be accessible during the deployment.

So now that you have PsExec.exe available, here is how you use it in the build process:

  1. Create a new application in the Applications folder of MDT
  2. Fill in the Working directory with the location where the application resides
  3. The command line will be as follows:

<location of psexec.exe>\PsExec.exe \\%COMPUTERNAME% /accepteula -u <domain>\<username> -p <password> <installation commandline>

NOTE: The \\%COMPUTERNAME% is needed. You will continuously get an error 1 if it is not present. This uses the local computer name. The /accepteula is needed because if it is not accepted, it will prompt for acceptance during the silent install. The registry key is located under the HKCU, leaving this the easiest way to circumvent that. <location of psexec.exe> can be omitted if you have psexec.exe installed into the system32 directory.

VBScript NOTE: If you are running a VBscript for the , you do not need to put any of it in quotations.

Related Posts:

  • Internet Access for an application during MDT or SCCM build You have an application that is installed during the build process of MDT or SCCM and it needs access to the internet to download additional files. There are some programs, such as Autodesk Revit, that you cannot download ev… Read More
  • SCCM Package Doesn't Update You have a small package in SCCM that you needed to make a couple of lines of changes in the deployment script and it doesn't seem to update when you update the package in SCCM. This is because the changes are so minute that… Read More
  • SCCM Automation Checklist I have a checklist of automation procedures I want to include in SCCM during the upgrade process from SMS 2003. Create a script that will test the WMI on all machines. If an error occurs, SCCM will create a ticket in SCSM… Read More
  • Adobe CS6 Error 1603 You are trying to install the Adobe CS6 distribution package you created using Adobe Application Manager, and it fails due to an error 1603. There are several different issues I encountered that can cause this. The most … Read More
  • Autodesk Installation Error 1603 While installing Autodesk 2012, we were confronted with an error 1603. The error is caused by the Microsoft Visual C++, as outlined in this blog. Specifically, it is the design review portion of the package that requires the… Read More

0 comments:

Post a Comment