リモートデスクトップ ユーザー(接続可能ユーザー)の一覧をコマンドラインで取得したい

Anonymous
2023-06-16T08:19:04.1466667+00:00

はじめてお世話になります。
リモートデスクトップ ユーザー(接続可能ユーザー)の一覧は、設定→システム→リモートデスクトップでみることができますが、コマンドラインで取得することは可能でしょうか?
可能ならテキストベースで取得したいと考えております。
よろしくお願いいたします。
User's image

Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wesley Li-MSFT 4,576 Reputation points Microsoft External Staff
    2023-06-20T06:03:58.0833333+00:00

    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.

    https://morgantechspace.com/2015/07/powershell-list-rdp-user-sessions.html#:~:text=In%20Powershell%2C%20we%20can%20get%20a%20list%20of,IP%20address%20of%20the%20remote%20machine.%20QWinsta%20%2Fserver%3A210.168.1.54

    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

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.