Installing VcRedist
Install from the PowerShell Gallery
The VcRedist module is published to the PowerShell Gallery and can be found here: VcRedist. The module can be installed from the gallery with:
Install-Module -Name VcRedist
Import-Module -Name VcRedistUpdating the Module
If you have installed a previous version of the module from the gallery, you can install the latest update with the -Force parameter:
Install-Module -Name VcRedist -ForceManual Installation from the Repository
The module can be downloaded from the GitHub source repository and includes the module in the VcRedist folder. The folder needs to be installed into one of your PowerShell Module Paths. To see the full list of available PowerShell Module paths, use $env:PSModulePath.split(';') in a PowerShell console.
Common PowerShell module paths include:
- Current User:
%USERPROFILE%\Documents\WindowsPowerShell\Modules\ - All Users:
%ProgramFiles%\WindowsPowerShell\Modules\ - OneDrive:
$env:OneDrive\Documents\WindowsPowerShell\Modules\
To install from the repository
- Download the
main branchto your workstation. - Copy the contents of the VcRedist folder onto your workstation into the desired PowerShell Module path.
- Open a Powershell console with the Run as Administrator option.
- Run
Set-ExecutionPolicyusing the parameterRemoteSignedorBypass.
Once installation is complete, you can validate that the module exists by running Get-Module -ListAvailable VcRedist. To use the module, load it with:
Import-Module -Name VcRedist