< Back

Find-PackageProvider

Sat Jan 18, 2020 6:23 pm

NAME Find-PackageProvider



SYNOPSIS

Returns a list of Package Management package providers available for installation.





SYNTAX

Find-PackageProvider [[-Name] <String[]>] [-AllVersions] [-Credential <PSCredential>] [-Force] [-ForceBootstrap]

[-IncludeDependencies] [-MaximumVersion <String>] [-MinimumVersion <String>] [-Proxy <Uri>] [-ProxyCredential

<PSCredential>] [-RequiredVersion <String>] [-Source <String[]>] [<CommonParameters>]





DESCRIPTION

The Find-PackageProvider cmdlet finds matching PackageManagement providers that are available in package sources

registered with PowerShellGet. These are package providers available for installation with the

Install-PackageProvider cmdlet. By default, this includes modules available in the Windows PowerShell Gallery with

the PackageManagement and Provider tags. Find-PackageProvider also finds matching Package Management providers

that are available in the Package Management Azure Blob store. Use the bootstrapper provider to find and install

them.





PARAMETERS

-AllVersions [<SwitchParameter>]

Indicates that this cmdlet returns all available versions of the package provider. By default,

Find-PackageProvider only returns the newest available version.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Credential <PSCredential>

Specifies a user account that has permission to search for package providers.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Force [<SwitchParameter>]

Forces the command to run without asking for user confirmation. Currently, this is equivalent to the

ForceBootstrap parameter.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-ForceBootstrap [<SwitchParameter>]

Indicates that this cmdlet forces Package Management to automatically install the package provider.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-IncludeDependencies [<SwitchParameter>]

Indicates that this cmdlet includes dependencies.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-MaximumVersion <String>

Specifies the maximum allowed version of the package provider that you want to find. If you do not add this

parameter, Find-PackageProvider finds the highest available version of the provider.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-MinimumVersion <String>

Specifies the minimum allowed version of the package provider that you want to find. If you do not add this

parameter, Find-PackageProvider finds the highest available version of the package that also satisfies any

maximum specified version specified by the MaximumVersion parameter.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String[]>

Specifies one or more package provider module names, or provider names with wildcard characters. Separate

multiple package names with commas.



Required? false

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Proxy <Uri>

@{Text=}



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ProxyCredential <PSCredential>

@{Text=}



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RequiredVersion <String>

Specifies the exact allowed version of the package provider that you want to find. If you do not add this

parameter, Find-PackageProvider finds the highest available version of the provider that also satisfies any

maximum version specified by the MaximumVersion parameter.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Source <String[]>

Specifies one or more package sources. You can get a list of available package sources by using the

Get-PackageSource cmdlet.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Microsoft.PackageManagement.Packaging.SoftwareIdentity

This cmdlet returns a SoftwareIdentity object. A SoftwareIdentity object can be piped into

Install-PackageProvider to install the results of Find-PackageProvider .





NOTES









Example 1: Find all available package providers



PS C:\\>Find-PackageProvider



This command gets a list of all package providers that are available on the repositories supported by Package

Management. By default, those package providers are available on the PowerShell Gallery and by using the Package

Management bootstrapping application.

Example 2: Find all versions of a provider



PS C:\\>Find-PackageProvider -Name "Nuget" -AllVersions



This command finds all versions of the package provider named Nuget.

Example 3: Find a provider from a specified source



PS C:\\>Find-PackageProvider -Name "Gistprovider" -Source "PSGallery"



This command finds a package provider available by using a specified package source.



RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=822299

about_PackageManagement

Unregister-PackageSource

Get-PackageSource

Register-PackageSource

Install-PackageProvider