Re: How do I find out who is connected via Remote Desktop to an XPP machine?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Gary Webb (email_at_garywebb.co.uk)
Date: 04/25/04


Date: Sun, 25 Apr 2004 10:18:46 +0100

Nice! Thanks for pointing out this useful command. Unfortunatly though, this
gives me access denied when accessing a remote machine with the /server
switch. When somebody is remote desktopping to that machine, I obviosuly
cannot get to a command prompt on it to enter this command. Even so, I still
don't think this is the answer as when I run it from the system that I have
connected 'To' (remotely whilst connected), it just shows the username as
"administrator" against that session (which is the local user name I have
logged onto Remote Desktop as, and not the user name or computer name I am
connecting from - which is what I am after).

Thanks all the same. I will remember this command.

Gary

"Jeffrey Randow (MVP)" <jeffreyr-support@remotenetworktechnology.com> wrote
in message news:6i8m80pbktpd2bjd0919lpfk2ak81fum8s@4ax.com...
> Try qwinsta....
>
> From the command prompt help:
> Display information about Terminal Sessions.
>
> QUERY SESSION [sessionname | username | sessionid]
> [/SERVER:servername] [/MODE] [/FLOW] [/CONNECT]
> [/COUNTER]
>
> sessionname Identifies the session named sessionname.
> username Identifies the session with user username.
> sessionid Identifies the session with ID sessionid.
> /SERVER:servername The server to be queried (default is current).
> /MODE Display current line settings.
> /FLOW Display current flow control settings.
> /CONNECT Display current connect settings.
> /COUNTER Display current Terminal Services counters
> information.
>
> Jeffrey Randow (Windows Net. & Smart Display MVP)
> jeffreyr-support@remotenetworktechnology.com
>
> Please post all responses to the newsgroups for the benefit
> of all USENET users. Messages sent via email may or may not
> be answered depending on time availability....
>
> Remote Networking Technology Support Site -
> http://www.remotenetworktechnology.com
> Windows XP Expert Zone - http://www.microsoft.com/windowsxp/expertzone
>
> On Sat, 24 Apr 2004 09:19:08 +0100, "Gary Webb" <email@garywebb.co.uk>
> wrote:
>
> >We have a few XP Pro PC's that act as a method of remote desktopping to
> >other servers via VPN across the Internet for support purposes. We also
> >access these "RD" machines via remote desktop over the LAN. Whoever
connects
> >to one of these machines logs on as the same (local) user. These machines
> >are limited to a single RDP session that will give an error message if
> >somebody is already connected (rather than disconnect them). Therefore,
we
> >are always aware when somebody is currently accessing one of these
machines.
> >
> >I would like to expand this further by trying to find a method of
knowing
> >WHO is connected to these machines (mainly in case somebody has forgot to
> >disconnect). I have tried to write a few versions of vbscripts that will
> >look at these machines and pull the user name or computer name of who is
> >RDP'ing in. I seem to have reached a stage of going around in circles.
Can
> >anybody offer any advice on a method of getting this information?
> >
> >Thanks
> >
> >Gary
> >
>



Relevant Pages

  • Re: "tsadmin" cannot show user list
    ... "tsadmin" need 30 min to show user list. ... Because, command "quser/qwinsta" are new seach form internet, I will ... "tsadmin" have remote control user's session function. ...
    (microsoft.public.windows.terminal_services)
  • [UNIX] GNU Mailutils Multiple Vulnerabilities (Buffer Overflows, Format String, DoS)
    ... execute arbitrary code from remote using the GNU Mailutils programs. ... Remote exploitation of a format string vulnerability in the imap4d server ... The vulnerability specifically exists in the handling of the command tag ...
    (Securiteam)
  • Re: Remote Printing from a DOS app
    ... the other two are remote offices. ... command apply to all users regardless of their rights or if they are power ... Windows programs print to the remote computer fine. ... > I even wrote a script to do that automatically as the session ID changes ...
    (microsoft.public.windows.terminal_services)
  • Re: Enable remote Control?
    ... connecting to their Windows XP desktop via Remote Desktop Connection? ... If you choose the interact with the session, ...
    (microsoft.public.windows.server.sbs)
  • RV: remote tape with ontape (dd command) fail after openssh install
    ... I solved the permission denied of root remote command adding remote host to ... The source of problem has to do with the post installation openssh. ...
    (comp.databases.informix)