5,099 questions
Hello
Thank you for posting in our Q&A forum.
In Powershell, we can get a list of remote desktop sessions (rdp) using the commands QWinsta and Query.
If the response is helpful, please click "Accept Answer" and upvote it.