Powershell - Module

1 - About

Code Shipping - (Module|Component) in Powershell

Module are installed with a Powershell - Package Provider

3 - Management

3.1 - Install

  • a package provider may be mandatory and already installed

Example install the credential manager module

$CREDENTIAL_MANAGER = Get-Module -ListAvailable -Name $CREDENTIAL_MODULE_NAME 2>$null
if ($CREDENTIAL_MANAGER -eq $null){
    Write-Error "Credential Manager ($CREDENTIAL_MODULE_NAME) was not found. Installing it"
    Install-Module -Name $CREDENTIAL_MODULE_NAME
} else {
    Write-Host "Credential Manager ($CREDENTIAL_MODULE_NAME) is already installed."

3.2 - Get


listavailable is important !

Get-Module -Name ModuleName -ListAvailable

3.3 - Version

(Get-Module -Name ModuleName -ListAvailable).Version

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap