PowerShellGet 和 PowerShell 库

PowerShell 画廊是 PowerShell 内容的中央存储库。 在其中,可以找到 PowerShell 脚本、包含 PowerShell cmdlet 和 Desired State Configuration (DSC) 资源的模块。 其中一些包由Microsoft创作,其他包由 PowerShell 社区创作。

PowerShellGet 模块包含用于从 PowerShell 库发现、安装、更新和发布 PowerShell 包的 cmdlet。 这些包可以包含模块、DSC 资源、角色功能和脚本等项目。 确保您已安装最新版本的 PowerShellGetPackageManagement

Microsoft.PowerShell.PSResourceGet 模块取代了 PowerShellGetPackageManagement 模块。 PowerShell 7.4.0 中提供 Microsoft.PowerShell.PSResourceGet 版本 1.0.1。 最新版本在 PowerShell 库中提供,并且可以安装在任何受支持的 PowerShell 版本上。

有关详细信息,请参阅:

有关如何将 PowerShellGet 命令与 Gallery 结合使用的更多信息,请查看入门页面。 您还可以运行 Update-Help -Module PowerShellGet -Force 以安装这些命令的本地帮助。

提供反馈

GitHub 存储库中提供反馈并报告问题。 若要查看 PowerShell 库服务的当前状态,请参阅 GitHub 上的 PowerShell 库状态 页。