PowershellGet

PowerShellGet 是一个模块,其中包含用于发现、安装、更新和发布 PowerShell 项目(如模块、DSC 资源、角色功能和脚本)的命令。

PowershellGet

Find-Command

在模块中查找 PowerShell 命令。

Find-DscResource

查找 Desired State Configuration (DSC) 资源。

Find-Module

查找与指定条件匹配的存储库中的模块。

Get-InstalledModule

获取计算机上安装的模块。

Get-PSRepository

获取 PowerShell 存储库。

Install-Module

从存储库下载一个或多个模块,并将其安装在本地计算机上。

Publish-Module

将指定模块从本地计算机发布到联机库。

Register-PSRepository

注册 PowerShell 存储库。

Save-Module

将模块及其依赖项保存在本地计算机上,但不安装该模块。

Set-PSRepository

设置已注册存储库的值。

Uninstall-Module

卸载模块。

Unregister-PSRepository

取消注册存储库。

Update-Module

将最新版本的指定模块从联机库下载并安装到本地计算机。