PowerShellGet Module

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

PowerShellGet Cmdlet

Cmdlet 说明
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.

Get-InstalledModule

Gets installed modules on a computer.

Get-PSRepository

Gets PowerShell repositories.

Install-Module

Downloads one or more modules from a repository, and installs them on the local computer.

Publish-Module

Publishes a specified module from the local computer to an online gallery.

Register-PSRepository

Registers a PowerShell repository.

Save-Module

Saves a module and its dependencies on the local computer but doesn't install the module.

Set-PSRepository

Sets values for a registered repository.

Uninstall-Module

Uninstalls a module.

Unregister-PSRepository

Unregisters a repository.

Update-Module

Downloads and installs the newest version of specified modules from an online gallery to the local computer.