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 VcRedist
Updating 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 -Force
Manual 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 branch
to 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-ExecutionPolicy
using the parameterRemoteSigned
orBypass
.
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