September 11th, 2012

PowerTip: Discovering PowerShell Functions

Doctor Scripto
Scripter

Summary: Learn how to discover Windows PowerShell 3.0 functions.

Hey, Scripting Guy! Question How can I find all of the functions that exist in my Windows PowerShell 3.0 installation?

Hey, Scripting Guy! Answer

a. Use the Function drive:

            Dir Function:

b. First import all of the modules, and then perform a directory listing of the function drive:

Get-Module -ListAvailable | Import-Module

Dir function:

c. Use the Get-Command cmdlet and search for the command type of function:

Get-Command  -CommandType function

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.

Feedback