PowerTip: Display All PowerShell Modules and Cmdlets
Summary: Learn how to display all Windows PowerShell modules and cmdlet names.
How can I get output that shows Windows PowerShell module names and the cmdlets or functions that are contained inside the modules?
Use the Get-Module cmdlet, and then for each module, display the name and use Get-Command (gcm is an alias) to retrieve the cmdlets and functions (this is a single-line command broken at the pipe character for readability):
Get-Module -ListAvailable |
foreach {"`r`nmodule name: $_"; "`r`n";gcm -Module $_.name -CommandType cmdlet, function | select name}