How to get terminal server IDsession like qwinsta.exe or query session in VB.NET (.NET 5)

Stefano Fattori 26 Reputation points
2021-02-26T11:12:21.8+00:00

Hello,
I'm developing an RDP application that also support shadow connect, I have to read active ID sessions to connect with shadow, but How can I get it like using qwinsta.exe on powershell or query session on cmd?

Thanks

Developer technologies | .NET | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.