Megosztás a következőn keresztül:


Microsoft.PowerShell.PSResourceGet Module

A PSResourceGet egy olyan modul, amely parancsokat tartalmaz a PowerShell-összetevők, például modulok, DSC-erőforrások, szerepkör-képességek és szkriptek felderítésére, telepítésére, frissítésére és közzétételére.

Ez a dokumentáció a legújabb verziót tartalmazza Microsoft.PowerShell.PSResourceGet v1.1.1. A verziók közötti különbségek listáját a A PSResourceGet újdonságai című témakörben találja..

Fontos

A Windows PowerShell 5.1 PowerShellGet előtelepített 1.0.0.1-es verziójával rendelkezik. A PowerShellGet ezen verziója korlátozott funkciókkal rendelkezik, és nem támogatja a PowerShell-gyűjtemény frissített funkcióit. A PSResourceGet telepítéséhez először frissítenie kell a PowerShellGet legújabb verzióját. További információ: PowerShellGet frissítése Windows PowerShell 5.1-hez.

Microsoft.PowerShell.PSResourceGet parancsmagok

Parancsmag Description
Compress-PSResource

Compresses a specified folder containing module or script resources into a .nupkg file.

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.

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 .ps1 file to ensure it's valid for publication.

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 .ps1 file.