Skip to content

Commit 2106faa

Browse files
Merge pull request #336 from MicrosoftDocs/main
Auto Publish – main to live - 2026-03-18 22:05 UTC
2 parents 319a961 + 2546ed3 commit 2106faa

6 files changed

Lines changed: 64 additions & 18 deletions

File tree

powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/About/about_PSResourceGet.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Describes how to use version 3.x of the PowerShellGet module.
33
Locale: en-US
44
ms.custom: 1.1.1
5-
ms.date: 03/12/2026
5+
ms.date: 03/18/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/about_PSResourceGet?view=powershellget-3.x&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: about PSResourceGet
@@ -17,26 +17,34 @@ Describes how to use version 1.2.0 of the
1717
## Long description
1818

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

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

24-
- Simplify the code base making it easier to enhance and fix bugs
25-
- Remove the dependency on the **PackageManagement** module and use the
26-
**NuGet** library directly
27-
- Address long-standing usability issues that would be breaking changes from v2
28-
- Maintain compatibility for existing scripts written expecting v2 through a
29-
separate compatibility module
30-
- Improve search and installation performance
30+
The first time you use **Microsoft.PowerShell.PSResourceGet**, the module
31+
registers the PowerShell Gallery as a PSResource repository. By default, the
32+
PSGallery repository is registered with a priority of 50 and is marked as
33+
untrusted. Use the following command to trust the PSGallery repository:
34+
35+
```powershell
36+
Set-PSResourceRepository -Name PSGallery -Trusted -PassThru
37+
```
3138

3239
## Design changes
3340

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

38-
The following table shows the cmdlets that are available in **PowerShellGet**
39-
v3 and their v2 equivalents.
45+
The following table shows the cmdlets that are available in
46+
**Microsoft.PowerShell.PSResourceGet** and their **PowerShellGet** v2
47+
equivalents.
4048

4149
| Microsoft.PowerShell.PSResourceGet | PowerShellGet v2 |
4250
| ---------------------------------- | ------------------------- |

powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Get-PSResourceRepository.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.PSResourceGet.dll-Help.xml
33
Module Name: Microsoft.PowerShell.PSResourceGet
44
ms.custom: 1.2.0-p5
5-
ms.date: 12/10/2025
5+
ms.date: 03/18/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/get-psresourcerepository?view=powershellget-3.x&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
---
@@ -122,3 +122,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
122122
## NOTES
123123
124124
## RELATED LINKS
125+
126+
[Set-PSResourceRepository](Set-PSResourceRepository.md)
127+
128+
[Reset-PSResourceRepository](Reset-PSResourceRepository.md)
129+
130+
[Register-PSResourceRepository](Register-PSResourceRepository.md)
131+
132+
[Unregister-PSResourceRepository](Unregister-PSResourceRepository.md)

powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Register-PSResourceRepository.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.PSResourceGet.dll-Help.xml
33
Module Name: Microsoft.PowerShell.PSResourceGet
44
ms.custom: 1.2.0-p5
5-
ms.date: 12/10/2025
5+
ms.date: 03/18/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/register-psresourcerepository?view=powershellget-3.x&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
---
@@ -419,3 +419,11 @@ an error.
419419
## RELATED LINKS
420420

421421
[Microsoft.PowerShell.SecretManagement](/powershell/utility-modules/secretmanagement/overview)
422+
423+
[Get-PSResourceRepository](Get-PSResourceRepository.md)
424+
425+
[Set-PSResourceRepository](Set-PSResourceRepository.md)
426+
427+
[Reset-PSResourceRepository](Reset-PSResourceRepository.md)
428+
429+
[Unregister-PSResourceRepository](Unregister-PSResourceRepository.md)

powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Reset-PSResourceRepository.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.PSResourceGet.dll-Help.xml
33
Module Name: Microsoft.PowerShell.PSResourceGet
44
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/reset-psresourcerepository?view=powershellget-3.x&WT.mc_id=ps-gethelp
5-
ms.date: 12/10/2025
5+
ms.date: 03/18/2026
66
schema: 2.0.0
77
ms.custom: 1.2.0-p5
88
title: Reset-PSResourceRepository
@@ -41,7 +41,7 @@ Reset-PSResourceRepository -PassThru
4141
```Output
4242
Name Uri Trusted Priority IsAllowedByPolicy
4343
---- --- ------- -------- -----------------
44-
PSGallery https://www.powershellgallery.com/api/v2 True 50 True
44+
PSGallery https://www.powershellgallery.com/api/v2 False 50 True
4545
```
4646

4747
## PARAMETERS
@@ -113,3 +113,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
113113
## NOTES
114114
115115
## RELATED LINKS
116+
117+
[Get-PSResourceRepository](Get-PSResourceRepository.md)
118+
119+
[Set-PSResourceRepository](Set-PSResourceRepository.md)
120+
121+
[Register-PSResourceRepository](Register-PSResourceRepository.md)
122+
123+
[Unregister-PSResourceRepository](Unregister-PSResourceRepository.md)

powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Set-PSResourceRepository.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.PSResourceGet.dll-Help.xml
33
Module Name: Microsoft.PowerShell.PSResourceGet
44
ms.custom: 1.2.0-p5
5-
ms.date: 12/10/2025
5+
ms.date: 03/18/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/set-psresourcerepository?view=powershellget-3.x&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
---
@@ -380,3 +380,11 @@ returns a **PSRepositoryInfo** object.
380380
## RELATED LINKS
381381

382382
[Microsoft.PowerShell.SecretManagement](/powershell/utility-modules/secretmanagement/overview)
383+
384+
[Get-PSResourceRepository](Get-PSResourceRepository.md)
385+
386+
[Reset-PSResourceRepository](Reset-PSResourceRepository.md)
387+
388+
[Register-PSResourceRepository](Register-PSResourceRepository.md)
389+
390+
[Unregister-PSResourceRepository](Unregister-PSResourceRepository.md)

powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Unregister-PSResourceRepository.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.PSResourceGet.dll-Help.xml
33
Module Name: Microsoft.PowerShell.PSResourceGet
44
ms.custom: 1.2.0-p5
5-
ms.date: 12/10/2025
5+
ms.date: 03/18/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/unregister-psresourcerepository?view=powershellget-3.x&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
---
@@ -169,4 +169,10 @@ cmdlet outputs a **PSRepositoryInfo** object for each repository that's removed.
169169
170170
## RELATED LINKS
171171
172+
[Get-PSResourceRepository](Get-PSResourceRepository.md)
173+
174+
[Set-PSResourceRepository](Set-PSResourceRepository.md)
175+
176+
[Reset-PSResourceRepository](Reset-PSResourceRepository.md)
177+
172178
[Register-PSResourceRepository](Register-PSResourceRepository.md)

0 commit comments

Comments
 (0)