Skip to main content

Install Microsoft Visual C++ Redistributable

Summary

An Automate implementation of the Invoke-VcRedistModule agnostic script to install the Microsoft Visual C++ Redistributable. By default, the script will install the supported redistributable unless a user parameter is set.

Sample Run

Sample Run

Variables

NameDescription
ProjectNameInvoke-VCRedistModule
WorkingDirectoryC:\ProgramData_automation\script\Install-VCRedist

Global Variables

NameValueAccepted ValuesDescription
DebugFalseFalse, TrueWhen True, enables informational logging; when False (default), informational logs are suppressed to avoid adding entries to the h_scripts table. Set to True to assist with troubleshooting.
ScriptEngineEnableLoggerFalseFalse, TrueWhen True, enables final (success/failure) logging; when False (default), these logs are suppressed to avoid adding entries to the h_scripts table. Set to True to assist with troubleshooting.

User Parameters

NameExampleRequiredDescription
Release2019, 2012, 2013, 2022FalseSet the release id(s) of the Redistributable to install.
Purge1FalseSetting this parameter to 1 will remove the unsupported Redistributable and install the supported Redistributable.