PowerShellGet Module
PowerShellGet — это модуль с командами для обнаружения, установки, обновления и публикации артефактов PowerShell, таких как модули, ресурсы DSC, возможности ролей и скрипты.
Справочная документация по командлету на этом сайте документирует последнюю версию модуля.
Это важно
По состоянию на апрель 2020 г. коллекция PowerShell больше не поддерживает протокол TLS версии 1.0 и 1.1. Если вы не используете TLS 1.2 или более поздней версии, при попытке получить доступ к коллекции PowerShell появится сообщение об ошибке. Используйте следующую команду, чтобы убедиться, что используется TLS 1.2:
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
Дополнительные сведения см. в объявления
Командлеты 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. |