August 9th, 2015

PowerTip: Find Commands and Descriptions from Module

Doctor Scripto
Scripter

Summary: Find commands and their descriptions exported from a Windows PowerShell module.

Hey, Scripting Guy! Question How can I see the commands with their descriptions that are available in a new Windows PowerShell module?

Hey, Scripting Guy! Answer Use the Get-Command (gcm is an alias) cmdlet and specify the module. Then select the name and create
           a custom property to retrieve the description from Get-Help, for example:

gcm -Module psreadline |

select name, @{L='description'; E={(get-help $_).description.text}}

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.