Query Session / Qwinsta – Windows CMD Command

Display information about user sessions on a Terminal Server or a Remote Desktop Session Host (RD Session Host) server.

A user can always query the session to which the user is currently logged on. To query other sessions, the user must have Query Information special access permission.

If you do not specify a session by using SessionNameUserName, or SessionID, information about all active sessions in the system will be displayed.

Either the SessionName or the ID can be used by the Reset Session and LOGOFF commands respectfully to disconnect or logoff that session from the server.

The comment following session information is from the session profile. Any sessions in which the initial state is configured as DISABLED do not show up in the query session list until they are enabled.

The User Access permission type grants the following special permissions: Query Information, Logon, and Connect. These special permissions allow a user to Log on to a session on the terminal server. Query information about a session. Send messages to other user sessions. Connect to another session.

Permissions are set under:

Terminal Services Configuration | Connections | Properties | Permissions | Advanced | Permissions

You may also like...

2 Responses

  1. erotic massage london says:

    Thanks a lot for the blog. Great.

  2. Sheldon says:

    It’s not my first time to go to see this site,
    i am visiting this site dailly and take pleasant data from here

Leave a Reply

Your email address will not be published. Required fields are marked *