PowerShellGet
PowerShellGet copied to clipboard
Find-Module -Name * not returning all modules
Prerequisites
- [X] Write a descriptive title.
- [X] Make sure you are able to repro it on the latest version
- [X] Search the existing issues.
Steps to reproduce
When running the following:
$allModules = Find-Module -Name * -Repository PSGallery
$allModules.Count
2812
I am getting a different answer for the number of modules on the PSGallery each time I run the command.
Additionally, these numbers which range from 1900-3000 (approximately) are far lower than the web ui filter of 11k+ indicates.
Expected behavior
$allModules = Find-Module -Name * -Repository PSGallery
$allModules.Count
# count should be close to the published UI count of 11,146 modules
Actual behavior
$allModules = Find-Module -Name * -Repository PSGallery
$allModules.Count
# count is between 1900-3000 and changes each time
Error details
# count of PowerShell modules is low, and differs each time
Environment data
Name Value
---- -----
PSVersion 7.4.5
PSEdition Core
GitCommitId 7.4.5
OS Microsoft Windows 10.0.22635
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
7.4.5
Visuals
July 2025. Same here with PowerShell 7.5.2.