PowerShellGet is a PowerShell module with commands for discovering, installing, updating and publishing the PowerShell artifacts like Modules, DSC Resources, Role Capabilities and Scripts. Microsoft has released a Preview version of the module that interested users can finally try.
PowerShellGet can be installed in Windows PowerShell 5.0 or newer, or in PowerShell Core. The PowerShellGet module is also integrated with the PackageManagement module as a provider, users can also use the PackageManagement cmdlets for discovering, installing and updating the PowerShell artifacts like Modules and Scripts.
Microsoft has published the following change log for the PowerShellGet module.
Highlights of the releases
Preview 4 (3.0.0-beta4) Highlights
Wildcard search for the
-Repository parameter in
Find-PSResource. This allows the user to return results from all registered
PSRepositories instead of just their prioritized repository. To use this feature add
-Repository '*' to your call to
Fixed poor error handling for when repository is not accessible in
Preview 6 (3.0.0-beta6) Highlight
Publish-PSResource was introduced which allows users to publish PowerShell resources to any registered
Microsoft has 3 planned upcoming releases for the module:
- The Preview 7 release will focus on update functionality, along with several bug fixes that have been reported by users through these preview releases.
- The Release Candidate (RC) release will resolve any remaining bugs not resolved in this Preview 6 release.
- The 3.0 General Availability (GA) release will be the same as the RC version so long as no blocking or high-risk bugs are found in the release candidate. If there are any blocking or high-risk bugs, Microsoft will release another release candidate before GA.
To install the latest version module, open any PowerShell console and run:
Install-Module PowerShellGet -Force -AllowPrerelease -Repository PSGallery
Migration to PowerShellGet 3.0
The company is going to ship the the latest preview of PowerShellGet 3.0 in the next preview of PowerShell 7.1 (preview 6). The goal for this version of PowerShellGet, which will ship in PowerShell 7.1 preview 6, is to contain a compatibility module that will enable scripts with PowerShell 2.x cmdlets (ex.
Install-Module) to be run using the PowerShellGet 3.0 module. This means that users will likely not need to update their scripts to use PowerShellGet 2.x cmdlets with PowerShell 7.1. It is important to note, as well, that on systems which contain any other version of PowerShell, the PowerShellGet 2.x module will still be available and used.
Microsoft is about to ship PowerShellGet 3.0 with a compatibility layer into PowerShell 7.1 as the sole version of PowerShellGet in the package. However, the company will only do this if they reach GA, with a high bar for release quality, in time for the PowerShell 7.1 release candidate.
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!