Uncovering Parameter Binding

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!


Posted Jan 22 2010, 08:00 AM by ps1
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.