PowerTip: Display All PowerShell Modules and Cmdlets

The Scripting Guys


Summary: Learn how to display all Windows PowerShell modules and cmdlet names.

Hey, Scripting Guy! Question How can I get output that shows Windows PowerShell module names and the cmdlets or functions that are contained inside the modules?

Hey, Scripting Guy! Answer 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 {“rnmodule name: $_”; “rn”;gcm -Module $_.name -CommandType cmdlet, function | select name}

The Scripting Guys
Dr Scripto

Follow Dr   

No Comment.