Query session Command In Windows Server 2008

In this article I am going to explain about Query session Command in Windows Server 2008 and also explain it's related syntax.
  • 1967

Introduction

In this we displays information about sessions and this list includes information not only about active sessions but also about other sessions that the server runs.

Syntax

query session [<SessionName> | <UserName> | <SessionID>] [/server:<ServerName>] [/mode] [/flow] [/connect] [/counter]

 

 Parameter  Description
<SessionName> It Specifies the name of the session that you want to query.
<UserName> It specifies the name of the user whose sessions you want to query.
<SessionID> It Specifies the ID of the session that you want to query.
/server:<ServerName>> It identifies the RD Session Host server to query.
/mode In this we displays current line settings.
/flow In this we displays current flow-control settings.
/connect In this we displays current connect settings.
/counter In this we displays current counters information, including the total number of sessions created, disconnected, and reconnected.
/? It displays help at the command prompt.


Example
 

It is used to display information about all active sessions on server SERVER2
 

query session /server:SERVER2


It is used to display
information about active session MODEM02
 

query session MODEM02


Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.