PowerTip: Easily See the Content of Your Function

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon