Microsoft.PowerShell.PSResourceGet module: setup and commands
Documentation: Microsoft Learn
Discover and install modules with Find-PSResource and Install-PSResource, checking repository trust, version constraints and command-name changes.
Getting it
Ships with PowerShell 7.4 and later. On earlier versions, Install-Module -Name Microsoft.PowerShell.PSResourceGet puts it alongside the older PowerShellGet.
Examples
Show reference output
Show reference output
What it is for
Use it to find, install, update, and remove modules and scripts, and to register an internal repository. Publish-PSResource is the path for pushing a module to a private feed from a release pipeline.
Typical tasks
- Search the gallery by name or tag
- Install a specific version into a chosen scope
- Update installed modules to the current release
- Register a private NuGet feed as a repository
- Publish a module from a build pipeline
- Save a module to disk without installing it
Check the installed version
Compare the module path and version with the session used by your scheduled task or automation account. Use it to find, install, update, and remove modules and scripts, and to register an internal repository. Publish-PSResource is the path for pushing a module to a private feed from a release pipeline.