Pipeline parameter binding bypropertyname
Pipeline parameter binding by property name binds an input object's property value to a command parameter with a matching name.
Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS
Pipeline parameter binding byPropertyName is PowerShell's mechanism for binding a pipeline input object's property value to a command parameter with a matching name.
- How it is used
- Connects pipeline object properties to matching command parameters when direct ByValue binding cannot accept the input.
- How deep it goes
- Explains matching, help verification, multiple bindings, bad values, and property renaming, but stops short of scripting-language internals.
- Examples
- Demonstrates Get-ChildItem to Stop-Process, Import-Csv to New-Alias, and renamed CSV properties piped to New-ADUser.
- What you can do after
- Diagnose binding failures with Get-Member and full help, then reshape objects so eligible parameters receive matching properties.
Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools
Parameter binding by property name is a PowerShell parameter-binding mode that passes an input object's property value to a command parameter with the same name.
- How it is used
- Connects pipeline objects to command parameters through matching property and parameter names.
- How deep it goes
- Explains matching, multiple-property binding, tracing, failure modes, and advanced-function parameter declarations.
- Examples
- Uses Stop-Job tracing, Import-CSV with New-ADUser, and Get-MachineInfo parameters accepting property-name input.
- What you can do after
- Diagnose pipeline binding with Trace-Command and design advanced functions that accept matching object properties.
Related concepts
- parameter bindingcontrasts with · Parameter binding is PowerShell's process of mapping supplied arguments or pipeline objects to a command's parameters.
- hostnameconfigures · A hostname is a human-readable name that identifies a computer, device, service, or other host on a network and can be resolved to an address.
- pipelineuses · A pipeline is an ordered or coordinated sequence of connected processing stages or tasks that passes data, work, or results toward an outcome.
- attributeuses · An attribute is a named property, value, or piece of information associated with an entity, object, or program element.
- inputuses · An input is a value, information, or signal supplied to a system, computation, or interface for processing or to influence its behavior.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

