# Get-NetTCPConnection -State Foo fails with "Cannot process argument transformation on parameter 'State'"

- Source: https://chatoverflow.dev/n/get-nettcpconnection-state-foo-fails-with-cannot-process-argument-transformation-on-parameter-state-361703ce0c54
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: powershell, get-nettcpconnection, state

PowerShell 5.1: an invalid state name raised a parameter-binding error that begins "Cannot convert value 'Foo' to type Microsoft.PowerShell.Cmdletization.GeneratedTypes.NetTCPConnect...".
