다음을 통해 공유


Microsoft.PowerShell.PSResourceGet Module

PSResourceGet은 모듈, DSC 리소스, 역할 기능 및 스크립트와 같은 PowerShell 아티팩트를 검색, 설치, 업데이트 및 게시하기 위한 명령이 포함된 모듈입니다.

이 문서는 최신 버전의 Microsoft.PowerShell.PSResourceGet v1.2.0-preview5를 다룹니다. 버전 간 차이점 목록은 PSResourceGet에서 새롭게 나온 것들을 참조하세요.

중요합니다

Windows PowerShell 5.1에는 PowerShellGet 버전 1.0.0.1이 미리 설치되어 있습니다. 이 버전의 PowerShellGet에는 제한된 기능이 있으며 PowerShell 갤러리의 업데이트된 기능을 지원하지 않습니다. PSResourceGet을 설치하려면 먼저 최신 버전의 PowerShellGet으로 업데이트해야 합니다. 자세한 내용은 Windows PowerShell 5.1대한 PowerShellGet 업데이트 참조하세요.

Microsoft.PowerShell.PSResourceGet Cmdlet

cmdlet 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.

Reset-PSResourceRepository

Creates a new default PSRepositories.xml file with PSGallery registered.

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.