powershell:qnd:scripts_and_modules

This is an old revision of the document!


Modules

Search for modules that contain a specified command.

Find-Command -Repository PSGallery -Name Connect-ExchangeOnline

Find modules in repo that match name. For example, the following finds modules with a name that begins with exchange.

Find-Module -Repository PSGAllery -Name Exchange*

Find modules that provide a specified command

Find-Command get-msolrole
 
Name                                Version    ModuleName                          Repository
----                                -------    ----------                          ----------
Get-MsolRole                        1.1.183.66 MSOnline                            PSGallery

Find available modules with substring in name

Get-Module -ListAvailable | where {$_.Name -like "*exchange*"}
  • powershell/qnd/scripts_and_modules.1657809719.txt.gz
  • Last modified: 2022/07/14 14:41
  • by mgupton