April 9th, 2013

PowerTip: Easily See the Content of Your Function

Doctor Scripto
Scripter

Summary: Use the Get-Content cmdlet to read the content of your Windows PowerShell function.

Hey, Scripting Guy! Question How can I see the content of a function that is on on my system, which I did not write?

Hey, Scripting Guy! Answer Use the Get-Content cmdlet and point it to the Function: PowerShell drive. The following example gets the content of the more function.

Get-Content Function:\more

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.