PowerShellGet v3 Module
このドキュメントでは、 PowerShellGet モジュールのバージョン 3.0.22-beta22 について説明します。 このモジュールは、 PowerShellGet v2.2.x との互換性のために提供されています。 このバージョンのモジュールのコマンドレットは、 Microsoft.PowerShell.PSResourceGet モジュールで同等のコマンドレットを呼び出すプロキシ コマンドレットです。
プロキシ コマンドレットは、バージョン 2.x コマンドレットを使用するスクリプトの互換性レイヤーを提供します。 ほとんどの場合、スクリプトは変更なしで引き続き動作します。 ただし、モジュール間の動作にはいくつかの違いがあります。 PowerShellGet コマンドレットの一部のパラメーターは、Microsoft.PowerShell.PSResourceGet コマンドレットではサポートされていません。 プロキシ コマンドレットは、サポートされていないパラメーターをサイレント モードで破棄し、一部のパラメーターを変換し、その他のパラメーターを Microsoft.PowerShell.PSResourceGet モジュールの同等のコマンドレットに渡します。
Microsoft.PowerShell.PSResourceGet モジュールの詳細については、about_PSResourceGetを参照してください。
重要
Windows PowerShell 5.1 には、PowerShellGet プレインストールされているバージョン 1.0.0.1 が付属しています。 このバージョンの PowerShellGet には限られた機能があり、PowerShell ギャラリーの更新された機能はサポートされていません。 サポートするには、最新バージョンに更新する必要があります。
PowerShellコマンドレットの取得
| コマンドレット | 説明 |
|---|---|
| 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. |