Created
June 19, 2025 01:44
-
-
Save StartAutomating/92c07436a7809ecdcf76bc72077d63a8 to your computer and use it in GitHub Desktop.
Gist get My PowerShell Gallery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Gets my module metadata from the PowerShell Gallery. | |
.DESCRIPTION | |
Gets my module metadata from the PowerShell Gallery, without using any modules. | |
#> | |
param( | |
[string[]] | |
$Conditions = @( | |
"CompanyName eq 'Start-Automating'", | |
"Authors eq 'James Brundage'" | |
), | |
[int] | |
$Skip = 0 | |
) | |
Invoke-RestMethod -Uri ( | |
"https://www.powershellgallery.com/api/v2/Packages()?" + | |
"`$filter=IsAbsoluteLatestVersion eq true and ($($Conditions -join ' or '))" + | |
"&`$skip=$Skip&`$top=100&`$orderby=LastUpdated desc" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment