Bulk import applicaties in MDT

Mikael Nystrom created i freaking nice script.

Often I need to import applications into the workbench and that is fine. The process is easy and fast, but it is boring and if you have more then 5 apps it is really boring. Based on the fact that almost all my apps in is deployed using VB or wrappers its is just one file in a and then there is a subfolder with the content. You don’t need to be a genius to figure out that 90% of all the apps pretty much have the same folder and file structure in the root of the application folder, so why don’t we use PowerShell to import all the apps based on some guessing?

The command line:
This is the tricky part, since there is no way to know that it will be a guessing game and the command line might need to be modified after import, but I rather modify -3 applications instead of importing all of them manually.
The default cmdline for all imported apps will be:

.EXE    R0;$Install /q”
.MSI    R0;msiexec.exe /i $Install /qn”
.MSU    R0;wusa.exe $Install /Quiet /NoRestart”
.PS1    R0;.exe -ExecutionPolicy ByPass -File $InstallR1;
.WSF    R0;cscript.exe $Install”

The Script:
The is rather easy, it takes parameters. The from where to import and the share. You need to have installed since it is using cmdlets from MDT. The syntax for the looks like this:

.\Import-MDTApps.ps1 -ImportFolder d:\APPS -MDTFolder D:\DeploymentShare


You can download the here: http://1drv.ms/1pGTvkA mirror: Import-MDTApps.7z

Translate »
%d bloggers like this: