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?
lexathonAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

johnb6767Commented:
You could probably get a batch file to query remote sessions....

Using Tcpvcon
http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx

PSLogged on might do it as well.

PsLoggedOn v1.33
http://technet.microsoft.com/en-us/sysinternals/bb897545.aspx

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.....
0
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...!
0
johnb6767Commented:
Does the user account you are running the command from have Admin Rights to the local machine?
0
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

lexathonAuthor Commented:
yes it does. we're a small company so to keep things easy from an admin POV, all accounts are admin accounts.
0
johnb6767Commented:
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$?
0
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.
0
johnb6767Commented:
Youre really not going to be able to do anything I was suggesting then.......If you cant authenticate to the remote machines....
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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..

Cheers

alex
0
johnb6767Commented:
Yea, but if you could anonymously query things like this, kinda defeats the purpose of security......
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.