diff --git a/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/About/about_PSResourceGet.md b/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/About/about_PSResourceGet.md index 3ad8f84..f6242d4 100644 --- a/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/About/about_PSResourceGet.md +++ b/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/About/about_PSResourceGet.md @@ -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 @@ -17,17 +17,24 @@ 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: + +```powershell +Set-PSResourceRepository -Name PSGallery -Trusted -PassThru +``` ## Design changes @@ -35,8 +42,9 @@ 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 | | ---------------------------------- | ------------------------- | diff --git a/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Get-PSResourceRepository.md b/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Get-PSResourceRepository.md index 7d67ff7..3856199 100644 --- a/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Get-PSResourceRepository.md +++ b/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Get-PSResourceRepository.md @@ -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 --- @@ -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) diff --git a/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Register-PSResourceRepository.md b/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Register-PSResourceRepository.md index 7070faa..e14d912 100644 --- a/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Register-PSResourceRepository.md +++ b/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Register-PSResourceRepository.md @@ -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 --- @@ -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) diff --git a/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Reset-PSResourceRepository.md b/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Reset-PSResourceRepository.md index c0442dc..7d7b2fd 100644 --- a/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Reset-PSResourceRepository.md +++ b/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Reset-PSResourceRepository.md @@ -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 @@ -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 @@ -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) diff --git a/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Set-PSResourceRepository.md b/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Set-PSResourceRepository.md index 50a214e..89eecc0 100644 --- a/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Set-PSResourceRepository.md +++ b/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Set-PSResourceRepository.md @@ -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 --- @@ -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) diff --git a/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Unregister-PSResourceRepository.md b/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Unregister-PSResourceRepository.md index 15817f8..1fb72ac 100644 --- a/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Unregister-PSResourceRepository.md +++ b/powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Unregister-PSResourceRepository.md @@ -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 --- @@ -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)