O'Reilly logo

Learn PowerShell Toolmaking in a Month of Lunches by Don Jones and Jeffrey Hicks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

19.3. Interpreting trace-command output

We’re going to paste in a chunk of the trace output and provide an explanation for what we’re seeing:

DEBUG: ParameterBinding Information: 0 : BIND NAMED cmd line args
[Import-Csv]
DEBUG: ParameterBinding Information: 0 : BIND POSITIONAL cmd line args
[Import-Csv]
DEBUG: ParameterBinding Information: 0 :     BIND arg [.\computers.csv] to
 parameter [Path]

This means that PowerShell is binding named and positional parameters. It’s handling whatever parameters we’ve typed manually. Those always get bound first and override anything piped in that might have attached to those parameters. Here you can see that our path, .\computers.csv, is being attached to the –Path parameter:

DEBUG: ParameterBinding Information: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required