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

Stefano Fattori 21 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

.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
505 questions
{count} votes