PowerShellGet
PowerShellGet is a module with commands for discovering, installing, updating and publishing PowerShell artifacts like Modules, DSC Resources, Role Capabilities, and Scripts.
Important
Windows PowerShell 5.1 comes with version 1.0.0.1 of PowerShellGet preinstalled. This version of PowerShellGet has a limited features and doesn't support the updated capabilities of the PowerShell Gallery. To be supported, you must update to the latest version.
PowerShell 6.0 shipped with version 1.6.0 of PowerShellGet. PowerShell 7.0 shipped with version 2.2.3 of PowerShellGet. The current supported version of PowerShellGet is 2.2.5. If you are running Windows PowerShell 5.1, you must install a newer version.
The cmdlet reference documentation on this site documents the latest version of the module.
Important
The PowerShell Gallery only supports Transport Layer Security (TLS) 1.2 or higher. Use the following command to ensure you are using TLS 1.2:
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
For more information, see the announcement in the PowerShell blog.
PowerShellGet
Find-Command |
Finds PowerShell commands in modules. |
Find-DscResource |
Finds Desired State Configuration (DSC) resources. |
Find-Module |
Finds modules in a repository that match specified criteria. |
Find-RoleCapability |
Finds role capabilities in modules. |
Find-Script |
Finds a script. |
Get-InstalledModule |
Gets a list of modules on the computer that were installed by PowerShellGet. |
Get-InstalledScript |
Gets an installed script. |
Get-PSRepository |
Gets PowerShell repositories. |
Install-Module |
Downloads one or more modules from a repository, and installs them on the local computer. |
Install-Script |
Installs a script. |
New-ScriptFileInfo |
Creates a script file with metadata. |
Publish-Module |
Publishes a specified module from the local computer to an online gallery. |
Publish-Script |
Publishes a script. |
Register-PSRepository |
Registers a PowerShell repository. |
Save-Module |
Saves a module and its dependencies on the local computer but doesn't install the module. |
Save-Script |
Saves a script. |
Set-PSRepository |
Sets values for a registered repository. |
Test-ScriptFileInfo |
Validates a comment block for a script. |
Uninstall-Module |
Uninstalls a module. |
Uninstall-Script |
Uninstalls a script. |
Unregister-PSRepository |
Unregisters a repository. |
Update-Module |
Downloads and installs the newest version of specified modules from an online gallery to the local computer. |
Update-ModuleManifest |
Updates a module manifest file. |
Update-Script |
Updates a script. |
Update-ScriptFileInfo |
Updates information for a script. |
Feedback
Submit and view feedback for