Initialize-Module
1.1
This function ensures that specified PowerShell modules are installed, up-to-date, and imported for use.
It handles necessary prerequisites for PowerShell Gallery interaction, including:
- Setting the security protocol to TLS 1.2.
- Ensuring the NuGet package provider is available.
- Installing/updating and importing the 'Microsoft.PowerShell.PSResourceGet' module for
It handles necessary prerequisites for PowerShell Gallery interaction, including:
- Setting the security protocol to TLS 1.2.
- Ensuring the NuGet package provider is available.
- Installing/updating and importing the 'Microsoft.PowerShell.PSResourceGet' module for
This function ensures that specified PowerShell modules are installed, up-to-date, and imported for use.
It handles necessary prerequisites for PowerShell Gallery interaction, including:
- Setting the security protocol to TLS 1.2.
- Ensuring the NuGet package provider is available.
- Installing/updating and importing the 'Microsoft.PowerShell.PSResourceGet' module for modern gallery operations.
For each module specified by the -Name parameter, the function will:
1. Attempt to install or update it to the latest version from the PowerShell Gallery. Modules are typically installed for AllUsers.
2. Import the module into the current session.
This automates the common tasks required to make PowerShell modules ready for use.
Show more
It handles necessary prerequisites for PowerShell Gallery interaction, including:
- Setting the security protocol to TLS 1.2.
- Ensuring the NuGet package provider is available.
- Installing/updating and importing the 'Microsoft.PowerShell.PSResourceGet' module for modern gallery operations.
For each module specified by the -Name parameter, the function will:
1. Attempt to install or update it to the latest version from the PowerShell Gallery. Modules are typically installed for AllUsers.
2. Import the module into the current session.
This automates the common tasks required to make PowerShell modules ready for use.
Installation Options
Owners
Package Details
Author(s)
- Jonathan Pitre
Tags
Dependencies
This script has no dependencies.
Release Notes
1.1 - 2025-06-16
Added log file and transcript.
Added log path and file parameters.
1.0 - 2025-05-30
Initial release.
FileList
- Initialize-Module.nuspec
- Initialize-Module.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
1.3 | 170 | 6/20/2025 |
1.2 | 96 | 6/17/2025 |
1.1 (current version) | 19 | 6/17/2025 |
1.0 | 142 | 5/30/2025 |