PowerShell Gallery is an online repository for discovering and distributing community-contributed PowerShell modules and related packages. PowerShellGet searches, installs, updates, and registers repositories, much like Linux package managers. Treat downloaded code cautiously: Microsoft operates the gallery but does not validate or endorse every contribution. section 7.2 section 9.2
A practical workflow uses these commands:
- Search with Find-Module, inspect package details and compatibility, then install with Install-Module. section 7.2 section 9.2
- Verify an installed but unloaded module with Get-Module -ListAvailable, and inspect its commands with Get-Command -Module. section 7.2 section 9.2
- Register an internal gallery with Register-PSRepository when private distribution is needed. section 7.2
Find and install a YAML module
Run Find-Module *YAML*, review the results, install powershell-yaml, and use Get-Command -Module powershell-yaml to discover ConvertFrom-Yaml and ConvertTo-Yaml. Review unfamiliar code before trusting it. section 9.2
Browse the Az module search as a concrete example of locating a package in the gallery. section 7.2
