Import Redistributables into MDT¶
To install the Visual C++ Redistributables as a part of a reference image or for use with a deployment solution based on the Microsoft Deployment Toolkit (MDT),
Import-VcMdtApplication will import each of the Visual C++ Redistributables as separate applications that includes the passive or silent command lines, platform support and the UninstallKey for detecting whether the Visual C++ Redistributable is already installed.
Visual C++ Redistributables can be filtered for release and processor architecture by
Get-VcList before passing to
VcList- An array containing details of the Visual C++ Redistributables from
Path- A folder containing the downloaded Visual C++ Redistributables downloaded with
MdtPath- the local or network path to the MDT deployment share
Silent- Configures the MDT application quiet install command to be completely silent instead of using the default passive install command line
Force- Forces overwrite of an existing Visual C++ Redistributable application
AppFolder- Imports the Visual C++ Redistributables into a sub-folder. Defaults to
MdtDrive- The drive letter that will be mapped to the MDT deployment share. Not required and defaults to
Publisher- The publisher that will be assigned to the Visual C++ Redistributables bundle. Not required and defaults to "Microsoft"
Language- The language assigned to the Visual C++ Redistributables bundle. Defaults to
2022 supported Redistributables into an MDT deployment share:
$VcList = Get-VcList Import-VcMdtApplication -VcList $VcList -Path C:\Temp\VcRedist -MdtPath \\server\deployment
Each Redistributable will be imported into the deployment share with application properties required for a successful deployment.
The folder structure in the deployment share, will look thus:
The install command line arguments used by default are passive. Fully silent install command line arguments can be specified with the
-Silent parameter when importing the applications into an MDT deployment share.
$VcList = Get-VcList Import-VcMdtApp -VcList $VcList -Path C:\Temp\VcRedist -MdtPath \\server\deployment -Silent