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

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,596 questions
{count} votes