Uncovering Parameter Binding

by Jan 22, 2010

You should use Trace-Command: if you are ever in doubt about just how PowerShell binds cmdlet parameters to a cmdlet

Trace-Command -psHost -Name ParameterBinding {
Get-Childitem c:\windows *.log }

Simply place the call in question into the brackets and then examine the yellow information lines displayed by Trace-Command.

Twitter This Tip! ReTweet this Tip!