Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: Describes how to use version 3.x of the PowerShellGet module.
Locale: en-US
ms.custom: 1.1.1
ms.date: 03/12/2026
ms.date: 03/18/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/about_PSResourceGet?view=powershellget-3.x&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about PSResourceGet
Expand All @@ -17,26 +17,34 @@ Describes how to use version 1.2.0 of the
## Long description

**Microsoft.PowerShell.PSResourceGet** is an updated version of the
**PowerShellGet** module completely written in C#.
**PowerShellGet** module completely written in C# and provides the following
benefits over previous versions of PowerShellGet:

This version of PowerShellGet focuses on a few key areas:
- Simplifies the code base making it easier to enhance and fix bugs
- Removes the dependency on the **PackageManagement** module and uses the
**NuGet** APIs directly
- Addresses long-standing usability issues that would be breaking changes if
made in **PowerShellGet** v2
- Improves search and installation performance

- Simplify the code base making it easier to enhance and fix bugs
- Remove the dependency on the **PackageManagement** module and use the
**NuGet** library directly
- Address long-standing usability issues that would be breaking changes from v2
- Maintain compatibility for existing scripts written expecting v2 through a
separate compatibility module
- Improve search and installation performance
The first time you use **Microsoft.PowerShell.PSResourceGet**, the module
registers the PowerShell Gallery as a PSResource repository. By default, the
PSGallery repository is registered with a priority of 50 and is marked as
untrusted. Use the following command to trust the PSGallery repository:
Comment on lines +30 to +33

```powershell
Set-PSResourceRepository -Name PSGallery -Trusted -PassThru
```

## Design changes

Previous versions of **PowerShellGet** had separate commands to work with
modules and scripts. In **Microsoft.PowerShell.PSResourceGet**, all packages in
the PowerShell Gallery are defined as **PSResource** objects.

The following table shows the cmdlets that are available in **PowerShellGet**
v3 and their v2 equivalents.
The following table shows the cmdlets that are available in
**Microsoft.PowerShell.PSResourceGet** and their **PowerShellGet** v2
equivalents.

| Microsoft.PowerShell.PSResourceGet | PowerShellGet v2 |
| ---------------------------------- | ------------------------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.PSResourceGet.dll-Help.xml
Module Name: Microsoft.PowerShell.PSResourceGet
ms.custom: 1.2.0-p5
ms.date: 12/10/2025
ms.date: 03/18/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/get-psresourcerepository?view=powershellget-3.x&WT.mc_id=ps-gethelp
schema: 2.0.0
---
Expand Down Expand Up @@ -122,3 +122,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## NOTES

## RELATED LINKS

[Set-PSResourceRepository](Set-PSResourceRepository.md)

[Reset-PSResourceRepository](Reset-PSResourceRepository.md)

[Register-PSResourceRepository](Register-PSResourceRepository.md)

[Unregister-PSResourceRepository](Unregister-PSResourceRepository.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.PSResourceGet.dll-Help.xml
Module Name: Microsoft.PowerShell.PSResourceGet
ms.custom: 1.2.0-p5
ms.date: 12/10/2025
ms.date: 03/18/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/register-psresourcerepository?view=powershellget-3.x&WT.mc_id=ps-gethelp
schema: 2.0.0
---
Expand Down Expand Up @@ -419,3 +419,11 @@ an error.
## RELATED LINKS

[Microsoft.PowerShell.SecretManagement](/powershell/utility-modules/secretmanagement/overview)

[Get-PSResourceRepository](Get-PSResourceRepository.md)

[Set-PSResourceRepository](Set-PSResourceRepository.md)

[Reset-PSResourceRepository](Reset-PSResourceRepository.md)

[Unregister-PSResourceRepository](Unregister-PSResourceRepository.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.PSResourceGet.dll-Help.xml
Module Name: Microsoft.PowerShell.PSResourceGet
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/reset-psresourcerepository?view=powershellget-3.x&WT.mc_id=ps-gethelp
ms.date: 12/10/2025
ms.date: 03/18/2026
schema: 2.0.0
ms.custom: 1.2.0-p5
title: Reset-PSResourceRepository
Expand Down Expand Up @@ -41,7 +41,7 @@ Reset-PSResourceRepository -PassThru
```Output
Name Uri Trusted Priority IsAllowedByPolicy
---- --- ------- -------- -----------------
PSGallery https://www.powershellgallery.com/api/v2 True 50 True
PSGallery https://www.powershellgallery.com/api/v2 False 50 True
```

## PARAMETERS
Expand Down Expand Up @@ -113,3 +113,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## NOTES

## RELATED LINKS

[Get-PSResourceRepository](Get-PSResourceRepository.md)

[Set-PSResourceRepository](Set-PSResourceRepository.md)

[Register-PSResourceRepository](Register-PSResourceRepository.md)

[Unregister-PSResourceRepository](Unregister-PSResourceRepository.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.PSResourceGet.dll-Help.xml
Module Name: Microsoft.PowerShell.PSResourceGet
ms.custom: 1.2.0-p5
ms.date: 12/10/2025
ms.date: 03/18/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/set-psresourcerepository?view=powershellget-3.x&WT.mc_id=ps-gethelp
schema: 2.0.0
---
Expand Down Expand Up @@ -380,3 +380,11 @@ returns a **PSRepositoryInfo** object.
## RELATED LINKS

[Microsoft.PowerShell.SecretManagement](/powershell/utility-modules/secretmanagement/overview)

[Get-PSResourceRepository](Get-PSResourceRepository.md)

[Reset-PSResourceRepository](Reset-PSResourceRepository.md)

[Register-PSResourceRepository](Register-PSResourceRepository.md)

[Unregister-PSResourceRepository](Unregister-PSResourceRepository.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.PSResourceGet.dll-Help.xml
Module Name: Microsoft.PowerShell.PSResourceGet
ms.custom: 1.2.0-p5
ms.date: 12/10/2025
ms.date: 03/18/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/unregister-psresourcerepository?view=powershellget-3.x&WT.mc_id=ps-gethelp
schema: 2.0.0
---
Expand Down Expand Up @@ -169,4 +169,10 @@ cmdlet outputs a **PSRepositoryInfo** object for each repository that's removed.

## RELATED LINKS

[Get-PSResourceRepository](Get-PSResourceRepository.md)

[Set-PSResourceRepository](Set-PSResourceRepository.md)

[Reset-PSResourceRepository](Reset-PSResourceRepository.md)

[Register-PSResourceRepository](Register-PSResourceRepository.md)