Skip to content

Get the VcRedist list

Get-VcList returns the list of Visual C++ Redistributables. The VcRedist module includes the full list of available supported and unsupported Redistributables and returns only the supported list by default. Unless you have a specific requirement, it is highly recommend that you install only the supported Redistributables.

Running Get-VcList with no parameters will return an array of the supported Redistributables by reading the internal manifest. Output can then be manipulated to filter the results. Note though, the default behaviour of Get-VcList is currently to return only the 2010, 2012, 2013 and 2019 Redistributables. This is because the 2015, 2017 and 2019 Redistributables are all the same major version and will be upgraded to the 2019 release and can't be installed side-by-side.

Here's a sample of what's returned:

PS C:\> Get-VcList

Name            : Visual C++ 2013 Update 5 Redistributable Package
ProductCode     : {042d26ef-3dbe-4c25-95d3-4c1b11b235a7}
Version         : 12.0.40664.0
URL             : https://support.microsoft.com/en-us/help/4032938/update-for-visual-c-2013-redistributable-package
Download        : https://download.visualstudio.microsoft.com/download/pr/10912041/cee5d6bca2ddbcd039da727bf4acb48a/vcredist_x64.exe
Release         : 2013
Architecture    : x64
Install         : /install /passive /norestart
SilentInstall   : /install /quiet /norestart
SilentUninstall : "%ProgramData%\Package Cache\{042d26ef-3dbe-4c25-95d3-4c1b11b235a7}\vcredist_x64.exe" /uninstall /quiet /noreboot
UninstallKey    : 32

Name            : Visual C++ 2013 Update 5 Redistributable Package
ProductCode     : {9dff3540-fc85-4ed5-ac84-9e3c7fd8bece}
Version         : 12.0.40664.0
URL             : https://support.microsoft.com/en-us/help/4032938/update-for-visual-c-2013-redistributable-package
Download        : https://download.visualstudio.microsoft.com/download/pr/10912113/5da66ddebb0ad32ebd4b922fd82e8e25/vcredist_x86.exe
Release         : 2013
Architecture    : x86
Install         : /install /passive /norestart
SilentInstall   : /install /quiet /norestart
SilentUninstall : "%ProgramData%\Package Cache\{9dff3540-fc85-4ed5-ac84-9e3c7fd8bece}\vcredist_x86.exe" /uninstall /quiet /noreboot
UninstallKey    : 32

Name            : Visual C++ Redistributable for Visual Studio 2019
ProductCode     : {855e31d2-9031-46e1-b06d-c9d7777deefb}
Version         : 14.28.29913.0
URL             : https://www.visualstudio.com/downloads/
Download        : https://aka.ms/vs/16/release/VC_redist.x64.exe
Release         : 2019
Architecture    : x64
Install         : /install /passive /norestart
SilentInstall   : /install /quiet /norestart
SilentUninstall : "%ProgramData%\Package Cache\{855e31d2-9031-46e1-b06d-c9d7777deefb}\VC_redist.x64.exe" /uninstall /quiet /noreboot
UninstallKey    : 32

Name            : Visual C++ Redistributable for Visual Studio 2019
ProductCode     : {03d1453c-7d5c-479c-afea-8482f406e036}
Version         : 14.28.29913.0
URL             : https://www.visualstudio.com/downloads/
Download        : https://aka.ms/vs/16/release/VC_redist.x86.exe
Release         : 2019
Architecture    : x86
Install         : /install /passive /norestart
SilentInstall   : /install /quiet /norestart
SilentUninstall : "%ProgramData%\Package Cache\{03d1453c-7d5c-479c-afea-8482f406e036}\VC_redist.x86.exe" /uninstall /quiet /noreboot
UninstallKey    : 32

Output from Get-VcList can be piped to Save-VcRedist, Install-VcRedist, Import-VcMdtApplication, Update-VcMdtApplication, Import-VcConfigMgrApplication and Update-VcConfigMgrApplication. Additionally, output from Get-VcList can be filtered using Where-Object. This approach is useful where you want to export the full list of Redistributables but filter for specific processor architectures.

Parameters

Optional parameters

  • Release - Specifies the release (or version) of the redistributables to return (e.g. 2019, 2010, 2012, etc.)
  • Architecture - Specifies the processor architecture to of the redistributables to return. Can be x86 or x64
  • Export - Defines the list of Visual C++ Redistributables to export - All, Supported or Unsupported Redistributables. Defaults to exporting the Supported Redistributables.
  • Manifest - An external JSON file that contains the details about the Visual C++ Redistributables. This must be in the expected format

Returning Supported Redistributables

Get-VcList without additional parameters will return all of the supported Redistributables. Using the -Release and -Architecture parameters will return the specified release and architecture from the supported Redistributables only.

Returning Unsupported Redistributables

To return Redistributables from the list of unsupported Redistributables or the entire list, the -Export parameter is required. The -Export parameter cannot be used with the -Release and -Architecture parameters; therefore to filter in the full list or the unsupported list of Redistributables, the output from Get-VcList must be filtered with Where-Object.

Filtering Output

The output from Get-VcList can be filtered before sending to other functions. Get-VcList has the -Release parameter for filtering on the 2005, 2008, 2010, 2012, 2013, 2015, 2017 and 2019 releases of the Redistributables. Additionally, the -Architecture parameter can filter on x86 and x64 processor architectures.

These parameters cannot be used with the -Export parameter. If you require filtering when exporting All, Supported or Unsuppported Redistributables, pipe the output to the Where-Object function.

Examples

Return the current list of supported Redistributables:

Get-VcList

Get-VcList does not return the 2015 and 2017 releases by default. To return specific releases and processor architectures from the supported list of Redistributables, the following example can be used:

Get-VcList -Release 2010, 2012, 2013, 2017 -Architecture x64

To return the complete list of available supported and unsupported Redistributables:

Get-VcList -Export All

You may want to export the complete list of available supported and unsupported Redistributables, but filter for 64-bit Redistributables only:

Get-VcList -Export All | Where-Object { $_.Architecture -eq "x64" }

To return a specific release and architecture from the list of unsupported Visual C++ Redistributables from the embedded manifest, the following can be used to filter for the 2008, 64-bit versions of the Redistributables.

Get-VcList -Export Unsupported | Where-Object { $_.Release -eq "2008" -and $_.Architecture -eq "x64" }