PowerTip: Find Commands Exported by PowerShell Module

Doctor Scripto

Summary: Find commands that are exported by a Windows PowerShell module.

Hey, Scripting Guy! Question How can I see what commands a Windows PowerShell module provides?

Hey, Scripting Guy! Answer There are two quick ways to find commands exported by a Windows PowerShell module.

The first expands the ExportedCommands property from a module (gmo is an alias for the Get-Module cmdlet):

gmo PSReadline | select -ExpandProperty exportedcommands

The second uses the Get-Command cmdlet (gcm is an alias for Get-Command):

gcm -Module PSreadline


Comments are closed. Login to edit/delete your existing comments

Feedback usabilla icon