Installing the Redistributables

Last updated 8 months ago

To install the Visual C++ Redistributables on the local machine, use Install-VcRedist. This function accepts the array of Visual C++ Redistributables passed from Get-VcList and installs the Visual C++ Redistributables downloaded to a local path with Get-VcRedist.

The following command will install the Visual C++ Redistributables already downloaded locally with Get-VcRedist to C:\Temp\VcRedist.

$VcList = Get-VcList
Install-VcRedist -Path C:\Temp\VcRedist -VcList $VcList

The install command line arguments used by default are passive. Fully silent install command line arguments can be specified with the -Silent parameter when installing the Redistributables.

$VcList = Get-VcList
Install-VcRedist -Path C:\Temp\VcRedist -VcList $VcList -Silent

Visual C++ Redistributables can be filtered for release and processor architecture.

Microsoft Visual C++ Redistributables installed on the local PC