Skip to content

Instantly share code, notes, and snippets.

@StartAutomating
Created June 19, 2025 01:44
Show Gist options
  • Save StartAutomating/92c07436a7809ecdcf76bc72077d63a8 to your computer and use it in GitHub Desktop.
Save StartAutomating/92c07436a7809ecdcf76bc72077d63a8 to your computer and use it in GitHub Desktop.
Gist get My PowerShell Gallery
<#
.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