PowerShellGet v3 Module
Tato dokumentace se zabývá verzí 3.0.22-beta22 modulu PowerShellGet . Tento modul je k dispozici z důvodu kompatibility s modulem PowerShellGet verze 2.2.x. Rutiny v této verzi modulu jsou rutiny proxy, které volají ekvivalentní rutiny v modulu Microsoft.PowerShell.PSResourceGet .
Rutiny proxy poskytují vrstvu kompatibility pro skripty, které používají rutiny verze 2.x. Ve většině případů skripty nadále fungují bez úprav. Mezi moduly ale existují určité rozdíly v chování. Některé parametry pro rutiny PowerShellGet nejsou podporovány rutinami Microsoft.PowerShell.PSResourceGet . Rutiny proxy serveru bezobslužně zahodí nepodporované parametry, transformují některé parametry a předávají další parametry ekvivalentním rutinám v modulu Microsoft.PowerShell.PSResourceGet .
Další informace o modulu Microsoft.PowerShell.PSResourceGet najdete v tématu about_PSResourceGet.
Důležité
Windows PowerShell 5.1 má předinstalovanou verzi 1.0.0.1 PowerShellGet. Tato verze modulu PowerShellGet má omezené funkce a nepodporuje aktualizované funkce galerie Prostředí PowerShell. Aby byla podporována, musíte aktualizovat na nejnovější verzi.
Rutiny PowerShellGet
| Rutina | Description |
|---|---|
| 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. |