querying remote desktop sessions on other machines within your LAN

Hi to all,

I am trying to find a way of creating a quick report of which machines are running remote desktop sessions. this is to stop people in our office from accidentally logging each other off.

the network is a simple set up with no domain controller. most remote machines have the same login credentials, but the client machines do not.

so far i have been trying to use QWINSTA in command but i get the error 1722: the RPC server in unavailable. i am using an XP machine, the other machines are vista or 7. file sharing is enabled.

trying between vista machines gives error 5: access denied.

testing the command on the localhost returns a successful output but it's not particularly nice to read.

what i'd really like is an icon people can have sitting on their desktop the when clicked returns the active remote desktop sessions on the 6 or 7 remote machines we have avaiable. is such a piece of software available?
Who is Participating?
Youre really not going to be able to do anything I was suggesting then.......If you cant authenticate to the remote machines....
You could probably get a batch file to query remote sessions....

Using Tcpvcon

PSLogged on might do it as well.

PsLoggedOn v1.33

You would want to run them remotely and do a "find /i "3389    ESTABLISHED"

That would indicate that an RDP connection is active....

Wont be pretty, but if you are interested, I can whip something up.....
lexathonAuthor Commented:
Johnb, thanks very much. I tried pslogged on and ran it from my laptop ("psloggedon \\computername")

but get the response
"Error opening HKEY_USERS for \\remote computer
Unable to query resource logons"

I looked through help and shared the admin$ folder on the remote machine but that seemed to make no difference.

Also, apologies but I've been learning this stuff on a need to know basis so I'm not entirely sure what you mean by ' do a "find /i "3389    ESTABLISHED" '...

running it from my laptop logged in with the same user credentials as that of the remote machine gives a slightly different response of

"Error opening HKEY_USERS for \\remote computer

Users logged on via resource shares:
     19/04/2010 09:42:36    my computer\workgroup

Is this something you might expect?

What I don't understand is why there isn't a readily available piece of software to do this? Surely it's a common requirement? Am I missing something? Is it that it's just not available to users of simple networks like ours??

And i appreciate your offer of help to code something up but don't want to trouble you to that length just yet...!
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Does the user account you are running the command from have Admin Rights to the local machine?
lexathonAuthor Commented:
yes it does. we're a small company so to keep things easy from an admin POV, all accounts are admin accounts.
Ouch.... Dangerous..... Easiest way to infect your network......

Ok, enough of that for now.....

But if you are logged on to YOUR machine with UserA/PasswordA, do those credentials match the rest of the PC's?

Dont know if we are talking workgroup/domain...

Can you access the other machines via Admin Share c$?
lexathonAuthor Commented:
we're talking workgroup, no domain.

i should add we're a software development company so we all need admin access to the machines to make the kind of changes we regularly have to make.

the user credentials do not match the credentials set up for the other machines. you can't access the admin c$ as the user credentials don't match. When trying to use the local ones for the remote account, from my machine, they aren't accepted.
lexathonAuthor Commented:
yeah as we went on i thought that might be the case, but thanks for your time. i'm suprised you can't run a little app from cnet or something that allows you to do this; there must be lots of small companies with primitive networks that need this functionaility..


Yea, but if you could anonymously query things like this, kinda defeats the purpose of security......
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.