Skip to main content

Install Microsoft VCRedist

Summary

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

Sample Run

Sample Run 1
Sample Run 2
Sample Run 3

User Parameters

NameExampleRequiredDescription
Release20192012,2013,2022FalseSet the release id(s) of the Redistributable to install.
PurgeFalseFlagging this parameter will remove the unsupported Redistributable and install the supported Redistributable.

User Parameters

Task Creation

Create a new Script Editor style script in the system to implement this Task.
Create Script
Script Editor

Name: Install Microsoft VCRedist
Description: Install Microsoft Visual C++ Redistributable
Category: Application

Category

Parameters

Add a new parameter by clicking the Add Parameter button present at the top-right corner of the screen.
Add Parameter

This screen will appear.
Parameter Screen

  • Set purge in the Parameter Name field.
  • Select Flag from the Parameter Type dropdown menu.
  • Enable the Default Value option.
  • Select False from the Value dropdown menu.
  • Click the Save button.
    Save Parameter
  • It will ask for confirmation to proceed. Click the Confirm button to create the parameter.
    Confirm Parameter

Add another parameter by clicking the Add Parameter button present at the top-right corner of the screen.
Add Parameter

This screen will appear.
Parameter Screen

  • Set Release in the Parameter Name field.
  • Select Text String from the Parameter Type dropdown menu.
  • Click the Save button.
    Save Parameter
  • It will ask for confirmation to proceed. Click the Confirm button to create the parameter.
    Confirm Parameter

Task

Navigate to the Script Editor Section and start by adding a row. You can do this by clicking the Add Row button at the bottom of the script page.
Add Row

A blank function will appear.
Blank Function

Row 1 Function: PowerShell Script

Search and select the PowerShell Script function.
Select PowerShell Script
PowerShell Script

The following function will pop up on the screen:
PowerShell Function

Paste in the following PowerShell script and set the expected time of script execution to 900 seconds. Click the Save button.

PowerShell Script

Script Save

Click the Save button at the top-right corner of the screen to save the script.
Save Script

Completed Task

Completed Task

Output

  • Script Log

Changelog

2025-04-10

  • Initial version of the document