Get-PackageProvider

SYNOPSIS

Gets imported package providers.

SYNTAX

Get-PackageProvider [[-Name] <String[]>] [-ListAvailable]
 [<CommonParameters>]

DESCRIPTION

Gets imported package providers.

EXAMPLES

Example 1

Get-PackageProvider

Name                 Priority Operations
----                 -------- ----------
msu                       100 Get
PowerShellGet             100 Find, Get, Publish, Install, Save, Uninstall, Update, GetSource, SetSource

The command gets the imported package providers.

PARAMETERS

-Name

Specifies the package provider name.

Type: String[]
Parameter Sets: (All)
Aliases: Provider

Required: False
Position: 0
Default value: *
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: True

-ListAvailable

Get list of available package providers in modules in $env:PSModulePath.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

You can pipe a package provider name to this cmdlet.

OUTPUTS

AnyPackage.Provider.PackageProviderInfo

This cmdlet returns objects that represent a package provider.

NOTES

Import-Module

Remove-Module