• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4370
  • Last Modified:

Query Session

hi,

how and where to use the terminal service commands?

i tried to use "query session" command in c:/> and i got this error

'query' is not recognized as an internal or external command,

if i restart the computer, are all sessions erased?

if i remotely log in from my laptop and click disconnect instead of logoff, when i log in again on the same laptop is that different session or the same as the one i previously disconnect?

finally, where can i find broad info from basic to advace regarding terminal service and remote desktop for winxp sp2

Thanks
0
antontolentino
Asked:
antontolentino
  • 6
  • 4
1 Solution
 
imnajamCommented:
Hi antontolentino,

try net session

Cheers!
0
 
antontolentinoAuthor Commented:
hi

thanks for that but i need to clarify what's the difference. i want to see the remote desktop sessions. what's the difference between "query session" and "net session".

i have verified from the microsoft website that "query session" is a valid command, why it is not working in my cmd prompt?

thanks
0
 
imnajamCommented:
well the "query session" commands needs to be run on the server which is running terminal services that would be either win2k3 server or win2k server, you can remotely log on to the terminal server and than run query session it will return you the currently connected users to the terminal server.

yes I have also found a document

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ts_cmd_querysession.mspx?mfr=true

check it out yourself and see if it's of any help / interest to you.

0
Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

 
antontolentinoAuthor Commented:
thanks again,

actually that page is what i am looking at when i told you that i verified with microsoft that the "query session" is a valid command. as i can see it, it is under the windows xp professional product documentations which makes me think that the same command is available in win xp pro and not just with win2k3 server or win2k server.

as per my original question, i tried to run "query session" but it return an error. is there any pre requisite to run that command? can i run that command eventhough there is no active connection?

thanks
0
 
imnajamCommented:
yes, you can run this command without even logging on remotely.

All you need is to have terminal services running on that win2k3 box, and the commands needs to be executed on the same.
0
 
imnajamCommented:
are you getting an error running the command on server? or winxp client?
0
 
antontolentinoAuthor Commented:
error: 'query' is not recognized as an internal or external command,
0
 
imnajamCommented:
I get the same error when running this command on my windows xp professional machine, but NOT on win2k3 server machine running terminal services
0
 
antontolentinoAuthor Commented:
does it mean that query session is not really supported in winxp?
0
 
imnajamCommented:
yes, query session is supported windows server based system running terminal services.

as it operation is to query "TERMINAL SERVICES" session details it must be run on the os running terminal server
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now