PoshTip #30 – Get All The Cmdlets Of A PowerShell Module

PoshTip #30 – Get All The Cmdlets Of A PowerShell Module

Sometime you need to know which cmdlets are imported by a specific PowerShell module. To get this list, first you need to import the module (PSReadLine module for example):

PS > import-module PSReadline

And then,17 run the following command:

PS > get-command -module PSReadline

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        PSConsoleHostReadline                              1.1        PSReadline
Cmdlet          Get-PSReadlineKeyHandler                           1.1        PSReadline
Cmdlet          Get-PSReadlineOption                               1.1        PSReadline
Cmdlet          Remove-PSReadlineKeyHandler                        1.1        PSReadline
Cmdlet          Set-PSReadlineKeyHandler                           1.1        PSReadline
Cmdlet          Set-PSReadlineOption                               1.1        PSReadline

 

Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 282 Articles
I work as an IT Production Manager, based in Paris (France) with a primary focus on Microsoft technologies. I have 10 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers", "Administering & Deploying SCCM", and CheckPoint CCSA certified.