Microsoft.PowerShell.PSResourceGet Module
PSResourceGet — это модуль с командами для обнаружения, установки, обновления и публикации артефактов PowerShell, таких как модули, ресурсы DSC, возможности ролей и скрипты.
Эта документация охватывает последнюю версию Microsoft.PowerShell.PSResourceGet v1.2.0-preview5. Список различий между версиями смотрите в разделе «Что нового в PSResourceGet?».
Это важно
Windows PowerShell 5.1 поставляется с предварительно установленной версией 1.0.0.1 PowerShellGet. Эта версия PowerShellGet имеет ограниченные возможности и не поддерживает обновленные возможности коллекции PowerShell. Чтобы установить PSResourceGet, необходимо сначала обновить до последней версии PowerShellGet. Дополнительные сведения см. в обновлении PowerShellGet для Windows PowerShell 5.1.
Cmdлеты Microsoft.PowerShell.PSResourceGet
| Командлет | Описание |
|---|---|
| Compress-PSResource |
Compresses a specified folder containing module or script resources into a |
| Find-PSResource |
Searches for packages from a repository (local or remote), based on a name or other package properties. |
| Get-InstalledPSResource |
Returns modules and scripts installed on the machine via PowerShellGet. |
| Get-PSResourceRepository |
Finds and returns registered repository information. |
| Get-PSScriptFileInfo |
Returns the metadata for a script. |
| Import-PSGetRepository |
Finds the repositories registered with PowerShellGet and registers them for PSResourceGet. |
| Install-PSResource |
Installs resources from a registered repository. |
| New-PSScriptFileInfo |
The cmdlet creates a new script file, including metadata about the script. |
| Publish-PSResource |
Publishes a specified module from the local computer to PSResource repository. |
| Register-PSResourceRepository |
Registers a repository for PowerShell resources. |
| Reset-PSResourceRepository |
Creates a new default |
| Save-PSResource |
Saves resources (modules and scripts) from a registered repository onto the machine. |
| Set-PSResourceRepository |
Sets information for a registered repository. |
| Test-PSScriptFileInfo |
Tests the comment-based metadata in a |
| Uninstall-PSResource |
Uninstalls a resource that was installed using PowerShellGet. |
| Unregister-PSResourceRepository |
Removes a registered repository from the local machine. |
| Update-PSModuleManifest |
Updates a module manifest file. |
| Update-PSResource |
Downloads and installs the newest version of a package already installed on the local machine. |
| Update-PSScriptFileInfo |
This cmdlet updates the comment-based metadata in an existing script |