...
Run the following commands to locate any installed instance of the active PowerShell modules: module
| Code Block |
|---|
|
$ModuleIsActive$ModuleIsInstalled = Get-Module -Name $PowerShellModuleName -ListAvailable |
Run the following commands to locate any active instance of the installed PowerShell modules module:
| Code Block |
|---|
$ModuleIsInstalled |
$ModuleIsActive = Get-Module -Name $PowerShellModuleName -ListAvailable |
Run the following commands to unload any active instance of the PowerShell modulesmodule
| Code Block |
|---|
|
If ($ModuleIsActive) { Remove-Module -Name $PowerShellModuleName -Force } |
Run the following commands to update or install the latest version of the PowerShell modules module from the PSGallery:
| Code Block |
|---|
|
If ($ModuleIsInstalled) { Update-Module -Name $PowerShellModuleName } Else { Install-Module -Name $PowerShellModuleName } |
...