Find the code for a function in PowerShell

Find the code for a function in PowerShell

John Savill

October 28, 2016

1 Min Read
Find the code for a function in PowerShell

Q. How can I get the content of a function in PowerShell?

A. If you want to view the code for a function you can view its content through the Function PSDrive. For example:

get-content function:mkdir

Note this example of mkdir shows how PowerShell emulates the cmd.exe mkdir which is really just New-Item with a type of Directory.

About the Author(s)

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like