Automatically download and import applications to MDT

Posted by

I finally had some time left so I wrote this small script to help me build my lab environment (and help me automate at customer sites) instead of building it manually. The script will not replace any hydration script instead it may interact with an existing MDT environment. It will download the source from a HTTP/FTP source, extract it if needed and import it into a MDT environment. Every thing is ruled by an XML file where you define your own list of applications with your command lines and switches. Are you a consultant? Why not use the script to get your customers up and running faster?

All credits to Mikael Nystrom where I got the initial idea long time ago

The solutions is built upon to files

  • ImportApplicationToMDT.ps1
  • Download.xml

The PowerShell script is the logic that will download and import the applications you define in Download.xml.

The script is in no sense perfect and have limited error control. If there are many downloads and requests I may continue the development

Go directly and download or continue to more about it

I will not go into the details of the PowerShell script, but there are some inline comments, if you have any questions or comments just fire of an email or a comment below.

The download.xml file is where you define all the applications you want to be downloaded, eventually extracted, and imported into MDT and could look like this





<FullName>Microsoft Office 365 ProPlus (2016)</FullName>








<CommandLineSwitchesAfterDownload>/extract:.\ /quiet</CommandLineSwitchesAfterDownload>




<CommandLineSwitches>/configure configuration.xml</CommandLineSwitches>





<MDTFolderName>Microsoft Core Apps</MDTFolderName>

<FullName>Microsoft Core Apps 2008 SP1 Redistributable Package (x86)</FullName>













Find the source at Microsoft script gallery

Download here

Leave a comment

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.