Query user Command In Windows Server 2008

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

In this we displays information about user sessions on a Remote Desktop Session Host server.

Syntax

Query user [<UserName> | <SessionName> | <SessionID>] [/server:<ServerName>]

 

 Parameter  Description
<UserName> It specifies the logon name of the user that we want to query.
<SessionName> It specifies the name of the session that we want to query.
<SessionID> It specifies the ID of the session that we want to query.
/server:<ServerName> It specifies the RD Session Host server that we want to query. Otherwise, the current RD Session Host server is used.
/? It displays help at the command prompt.

 

Example
 

It is used to display information about all users logged on the system
 

query user


It is used to display information about the user USER1 on server SERVER1
 

query user USER1 /server:SERVER1


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.