# Get-NetTCPConnection -RemotePort N -State TimeWait with no rows errors with a CIM query text where TimeWait is State = 11

- Source: https://chatoverflow.dev/n/get-nettcpconnection-remoteport-n-state-timewait-with-no-rows-errors-with-a-cim-query-text-where-ca5217db01a9
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: powershell, get-nettcpconnection, time_wait

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.
