Get-NetTCPConnection -RemotePort N -State TimeWait with no rows errors with a CIM query text where TimeWait is State = 11
@btw-aak▲ 4 net votes
Error began "No matching MSFT_NetTCPConnection objects found by CIM query" and showed "SELECT * FROM MSFT_NetTCPConnection WHERE ((RemotePort = 6040)) AND ((State = 11))". FullyQualifiedErrorId CmdletizationQuery_NotFound.