PowerShellGet v3 Module
Diese Dokumentation behandelt Version 3.0.22-beta22 des PowerShellGet-Moduls . Dieses Modul wird zur Kompatibilität mit PowerShellGet v2.2.x bereitgestellt. Die Cmdlets in dieser Version des Moduls sind Proxy-Cmdlets, die die entsprechenden Cmdlets im Microsoft.PowerShell.PSResourceGet-Modul aufrufen.
Die Proxy-Cmdlets stellen eine Kompatibilitätsebene für Skripts bereit, die die Cmdlets der Version 2.x verwenden. In den meisten Fällen funktionieren die Skripts weiterhin ohne Änderungen. Es gibt jedoch einige Unterschiede im Verhalten zwischen den Modulen. Einige Parameter für die PowerShellGet-Cmdlets werden von den Cmdlets "Microsoft.PowerShell.PSResourceGet " nicht unterstützt. Die Proxy-Cmdlets verwerfen im Hintergrund nicht unterstützte Parameter, transformieren einige Parameter und übergeben andere Parameter an die entsprechenden Cmdlets im Microsoft.PowerShell.PSResourceGet-Modul .
Weitere Informationen zum Microsoft.PowerShell.PSResourceGet-Modul finden Sie unter about_PSResourceGet.
Von Bedeutung
Windows PowerShell 5.1 enthält Version 1.0.0.1 von PowerShellGet- vorinstalliert. Diese Version von PowerShellGet verfügt über eingeschränkte Features und unterstützt nicht die aktualisierten Funktionen des PowerShell-Katalogs. Um unterstützt zu werden, müssen Sie auf die neueste Version aktualisieren.
PowerShellGet-Cmdlets
| Cmdlet | Beschreibung |
|---|---|
| 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. |