Ensure that you have a version of PowerShellGet and PackageManagement newer than 1.0.0.1
installed. The latest stable versions are 2.2.5 for PowerShellGet and 1.4.8.1 for
PackageManagement.
To access the PowerShell Gallery, you must use Transport Layer Security (TLS) 1.2 or higher. Use the
following command to enable TLS 1.2 in your PowerShell session.
Add this command to your PowerShell profile script to ensure TLS 1.2 is configured for every
PowerShell session. For more information about profiles, see about_Profiles.
If you're running PowerShell 6.0 or later, you already have a newer version of PowerShellGet and
PackageManagement installed. You can upgrade to a newer version if necessary or install the
preview release. You should always install the latest stable release.
Use the following command to see what version is installed.
To install the latest versions of these modules run the following:
Install-Module PowerShellGet -Force -AllowClobber
Install Microsoft.PowerShell.PSResourceGet
Microsoft.PowerShell.PSResourceGet is the new package management solution for PowerShell. With
this module, you no longer need to use PowerShellGet and PackageManagement. However, it can
be installed side-by-side with the existing PowerShellGet module. To install
Microsoft.PowerShell.PSResourceGet side-by-side with your existing PowerShellGet version,
open any PowerShell console and run:
Microsoft.PowerShell.PSResourceGet is preinstalled with PowerShell 7.4 and later.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
PowerShellGet feedback
PowerShellGet is an open source project. Select a link to provide feedback:
This learning path introduces you to Windows PowerShell and provides an overview of the product’s functionality. It explains how to open and configure Windows PowerShell, run commands, and use its built-in Help system.