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

PowerTip: Find Commands Exported by PowerShell Module

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles