Find-Module
Use Find-Module to search a registered repository for modules without installing anything.
Documentation: Microsoft Learn — PowerShell module reference
Syntax
See the command anatomy
Read the command and its supplied arguments. This example requires real PowerShell or its module; this diagram does not execute it.
Find-Module [[-Name] <string[]>] [-Tag <String[]>] [-Filter <String>] [-RequiredVersion <String>] [-AllVersions] [-Repository <String[]>] [-AllowPrerelease] [<CommonParameters>]- Stage 1Find-Module
-Name -Tag -Filter -RequiredVersion -AllVersions -Repository -AllowPrerelease
Try it
PowerShell example · browser support is limited.
Execution scope: The full example below requires PowerShell outside this browser. You can edit this runner to use the supported practice commands; unsupported syntax returns an explanation.
Follow the objects
Run the command to inspect each stage.
Examples
Find-Module -Name Pester
Show reference output
Sample output · fictional data, shaped like the real thing
Name Version PublishedDate Author ------------------------------- ------- ------------- ------ Microsoft.PowerShell.Management 7.0.0.0 Pester 5.5.0
Find-Module -Tag security
Show reference output
Sample output · fictional data, shaped like the real thing
Name Version ------------------------------- ------- Microsoft.PowerShell.Management 7.0.0.0 Pester 5.5.0
Find-Module -Name Pester (2)
Show reference output
Sample output · fictional data, shaped like the real thing
Version ------- 7.0.0.0 5.5.0
Parameters
Parameter definitions:
-Name-Tag-Filter-RequiredVersion-AllVersions-Repository-AllowPrerelease
Practical use and troubleshooting
Practical scenario: Use Find-Module when you need to search a registered repository for modules without installing anything. Start with one identified target and inspect the returned values before extending the operation to a list. Keep the identity in your report so you can trace each result back to the object or path that produced it.
Common error and fix: An empty search can mean the intended repository is not registered. Inspect Get-PSRepository and the repository connection before concluding that the module does not exist. In an unattended script, capture this failure with its original error record and record which target failed. An empty result and an unsuccessful query must remain distinguishable in the final report.
See also: Get-InstalledModule. Find-Module searches configured repositories; Get-InstalledModule reports installations tracked by PowerShellGet. The repository catalog and locally discoverable modules are not the same inventory. Read the linked command before substituting it; similar names do not imply identical inputs or output.
Recap
Find-Module Use Find-Module to search a registered repository for modules without installing anything.
Next: Install-Module