Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get statistics for published PowerShell Gallery packages
function Get-PSGalleryInfo {
Begin {
$t = @"
{Name*:PowerShellISE-preview} {[version]Version:} (this version) {[double]Downloads:885} {[DateTime]PublishDate:Wednesday, January 27 2016}
{Name*:ImportExcel} 1.97 {Downloads:106} Monday, January 18 2016
Process {
$url ="$Name/"
$r=iwr $url
($r.AllElements | ? {$_.class -match 'versionTableRow'}).innertext |
ConvertFrom-String -TemplateContent $t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.