On Sat, 14 Nov 2026 11:34:51 +0800, Sylvia Else wrote:
> I was using a command in Windows Powershell and got this error
>
> Get-NetTCPConnection: No matching MSFT_NetTCPConnection objects found by
> CIM query for instances of the ROOT/StandardCimv2/MSFT_NetTCPConnection
> class on the CIM server: SELECT * FROM MSFT_NetTCPConnection WHERE
> ((State = 2)) AND ((OwningProcess = 99310)). Verify query parameters and
> retry.
>
> This was an attempt to get the network ports on which a process is
> listening.
>
> And it's doing an SQL query to achieve that? Are you for real?
Hey, what do I know, but how to do web searches. “CIM” might stand for
“Cloud Infrastructure Management”. Were you trying to get info
remotely from another machine? This blog post
<https://blog.ahasayen.com/powershell-cim-script/> says “CIM” is the
modern API that all the cool kids are using, in place of the old
hand-cranked jalopy-driven “WMI” way of querying info from other
machines.
Microsoft did try, once upon a time, to create a filesystem that
was actually a database underneath. The final incarnation of this
idea was “WinFS”, which was supposed to ship with Windows Vista,
along with two other revolutionary new technologies.
None of them made it into the final product.
IBM did succeed over two decades earlier, with its System/38 range,
later succeeded by AS/400. Also I believe BeOS from the 1990s had a
somewhat simplified version of the same idea, at least for doing file
searches.
Oh, by the way:
SELECT * FROM MSFT_NetTCPConnection WHERE ((State = 2)) AND
((OwningProcess = 99310))
Wildcard field specs?? Really? (And look at all those parentheses ...)
> This is a re-post, of sorts, since my previous attempt seems to have
> vanished into the void - something that Thunderbird occasionally
> does to me.
It could also be that the NNTP service you posted to rejected it as
spam.
(I found that Eternal September would get triggered if I used a
certain peculiar word ...)