Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Find Commands and Descriptions from Module

$
0
0

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}}


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>