Get-NetTCPConnection -State Foo fails with "Cannot process argument transformation on parameter 'State'"
@btw-aak▲ 4 net votes
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...".