22external help file : Microsoft.PowerShell.PackageManagement.dll-Help.xml
33Locale : en-US
44Module Name : PackageManagement
5- ms.date : 04/26/2021
5+ ms.date : 06/16/2025
66online version : https://learn.microsoft.com/powershell/module/packagemanagement/install-packageprovider?view=powershellget-2.x&WT.mc_id=ps-gethelp
77schema : 2.0.0
88title : Install-PackageProvider
@@ -18,9 +18,9 @@ Installs one or more Package Management package providers.
1818
1919```
2020Install-PackageProvider [-Name] <String[]> [-RequiredVersion <String>] [-MinimumVersion <String>]
21- [-MaximumVersion <String>] [-Credential <PSCredential>] [-Scope <String>] [-Source <String[]>] [-Proxy <Uri>]
22- [-ProxyCredential <PSCredential >] [-AllVersions] [-Force ] [-ForceBootstrap ] [-WhatIf ] [-Confirm ]
23- [<CommonParameters>]
21+ [-MaximumVersion <String>] [-Credential <PSCredential>] [-Scope <String>] [-Source <String[]>]
22+ [-Proxy <Uri >] [-ProxyCredential <PSCredential> ] [-AllVersions ] [-Force ] [-ForceBootstrap ]
23+ [-WhatIf] [-Confirm] [ <CommonParameters>]
2424```
2525
2626### PackageByInputObject
@@ -41,27 +41,6 @@ available in the Windows PowerShell Gallery with the **PackageManagement** tag.
4141This cmdlet also installs matching Package Management providers that are available using the Package
4242Management bootstrapping application.
4343
44- This cmdlet also installs matching Package Management providers that are available in the Package
45- Management Azure Blob store. Use the bootstrapper provider to find and install them.
46-
47- In order to execute the first time, PackageManagement requires an internet connection to download
48- the NuGet package provider. However, if your computer does not have an internet connection and you
49- need to use the NuGet or PowerShellGet provider, you can download them on another computer and copy
50- them to your target computer. Use the following steps to do this:
51-
52- 1 . Run ` Install-PackageProvider -Name NuGet -RequiredVersion 2.8.5.201 -Force ` to install the
53- provider from a computer with an internet connection.
54- 1 . After the install, you can find the provider installed in
55- ` $env:ProgramFiles\PackageManagement\ProviderAssemblies\<ProviderName>\<ProviderVersion> ` or
56- ` $env:LOCALAPPDATA\PackageManagement\ProviderAssemblies\<ProviderName>\<ProviderVersion> ` .
57- 1 . Place the ` <ProviderName> ` folder, which in this case is the NuGet folder, in the corresponding
58- location on your target computer. If your target computer is a Nano server, you need to run
59- ` Install-PackageProvider ` from Nano Server to download the correct NuGet binaries.
60- 1 . Restart PowerShell to auto-load the package provider. Alternatively, run
61- ` Get-PackageProvider -ListAvailable ` to list all the package providers available on the computer.
62- Then use ` Import-PackageProvider -Name NuGet -RequiredVersion 2.8.5.201 ` to import the provider
63- to the current Windows PowerShell session.
64-
6544## EXAMPLES
6645
6746### Example 1: Install a package provider from the PowerShell Gallery
@@ -84,6 +63,10 @@ Find-PackageProvider -Name "NuGet" -AllVersions
8463Install-PackageProvider -Name "NuGet" -RequiredVersion "2.8.5.216" -Force
8564```
8665
66+ You only need to install the NuGet package provider if you are running PackageManagement v1.1.0.0 in
67+ Windows PowerShell. Newer versions of PowerShellGet and PackageManagement include the NuGet package
68+ provider by default.
69+
8770### Example 3: Find a provider and install it
8871
8972This example uses ` Find-PackageProvider ` and the pipeline to search for the Gist provider and
@@ -226,7 +209,7 @@ Accept wildcard characters: False
226209# ## -Name
227210
228211Specifies one or more package provider module names. Separate multiple package names with commas.
229- Wildcard characters are not supported.
212+ Wildcard characters aren't supported.
230213
231214` ` ` yaml
232215Type: System.String[]
@@ -258,7 +241,7 @@ Accept wildcard characters: False
258241
259242# ## -ProxyCredential
260243
261- Specifies a user account that has permission to use the proxy server that is specified by the
244+ Specifies a user account that has permission to use the proxy server that's specified by the
262245**Proxy** parameter.
263246
264247` ` ` yaml
@@ -275,7 +258,7 @@ Accept wildcard characters: False
275258
276259# ## -RequiredVersion
277260
278- Specifies the exact allowed version of the package provider that you want to install. If you do not
261+ Specifies the exact allowed version of the package provider that you want to install. If you don't
279262add this parameter, `Install-PackageProvider` installs the highest available version of the provider
280263that also satisfies any maximum version specified by the **MaximumVersion** parameter.
281264
@@ -296,10 +279,10 @@ Accept wildcard characters: False
296279Specifies the installation scope of the provider. The acceptable values for this parameter
297280are :
298281
299- - **AllUsers** - installs providers in a location that is accessible to all users of the computer.
282+ - **AllUsers** - installs providers in a location that's accessible to all users of the computer.
300283 By default, this is **$env:ProgramFiles\PackageManagement\ProviderAssemblies.**
301284
302- - **CurrentUser** - installs providers in a location where they are only accessible to the current
285+ - **CurrentUser** - installs providers in a location where they're only accessible to the current
303286 user. By default, this is **$env:LOCALAPPDATA\PackageManagement\ProviderAssemblies.**
304287
305288` ` ` yaml
@@ -350,7 +333,7 @@ Accept wildcard characters: False
350333
351334# ## -WhatIf
352335
353- Shows what would happen if the cmdlet runs. The cmdlet is not run.
336+ Shows what would happen if the cmdlet runs. The cmdlet isn't run.
354337
355338` ` ` yaml
356339Type: System.Management.Automation.SwitchParameter
@@ -384,7 +367,7 @@ You can pipe a **SoftwareIdentity** object to this cmdlet. Use `Find-PackageProv
384367
385368> [!IMPORTANT]
386369> As of April 2020, the PowerShell Gallery no longer supports Transport Layer Security (TLS)
387- > versions 1.0 and 1.1. If you are not using TLS 1.2 or higher, you will receive an error when
370+ > versions 1.0 and 1.1. If you aren't using TLS 1.2 or higher, you will receive an error when
388371> trying to access the PowerShell Gallery. Use the following command to ensure you are using TLS
389372> 1.2:
390373>
0 commit comments