For users of Microsoft Deployment Toolkit (MDT) the ability to separate applications from the OS during deployment is a great feature. It is a much easier way to manage and deploy packages during the imaging process. Thankfully for Chocolatey users, MDT allows admins to have applications that do not have source files, in this case just a command like “choco install dropbox -y“.

Most organizations that use Chocolatey have their own hosted NuGet server which they use to deploy packages from. In this example I have setup a Chocolatey simple server. To see what packages are on your hosted server you can run “choco list –source<server>“.

So if you are using MDT and host a NuGet server how can we quickly import all your packages into MDT? We can use the MDT PSSnapin and Chocolatey CLI.

In this example I have my own hosted NuGet server “”. I create a new PS drive to my MDT share “MDT”, use “choco list –” in order to get a list of my hosted packages and then loop through them to create an MDT application in the subfolder “test” for each package.

Just like that, Chocolatey deliciousness.


Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts


Remotely migrate user data with USMT and PowerShell

USMT has been a staple for system administrators for years and has greatly reduced the time to migrate data between computers. USMT has the ability to migrate user files, OS settings, and application settings. It Read more…


Deploy VMware VMs with PowerCLI and MDT

If you are managing Windows servers, chances are you have a mix of physical and virtual servers in your data center. While VMware provides a method to create VMs from templates to simplify server deployments, Read more…


Journey into Windows 10 in-place upgrade troubleshooting hell

Like many others organizations, mine is in the process of deploying Windows 10. Any new machine is now Windows 10, and we are now taking requests for users who want to do an in-place upgrade Read more…