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.
Find the code for a function in PowerShell
October 28, 2016
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.
You May Also Like