Avatar of Ted Penner
Ted Penner
Flag for United States of America asked on

See logged on or locked status of another windows computer

We have no admin access in this environment but do have the ability to login remotely to another computer using the remote desktop feature built into W7.  However, before connecting, I would prefer to check and make sure that nobody is using it.  The locked and/or login status is needed.  Assistance is greatly appreciated.
Windows 7

Avatar of undefined
Last Comment
Qlemo

8/22/2022 - Mon
David Johnson, CD

There is no way without a domain involved.
Qlemo

And what about query session /server:ComputerName listing the remote sessions?
David Johnson, CD

should work, Qlemu, I'd forgotten about that.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Ted Penner

ASKER
hmm,  forgive my ignorance here.  Let's assume the IP of the machine I need to inquire about is 192.168.x.x.  It is on a domain called ad.local.  How do I write the syntax?

I'm checking to see if anyone is currently logged-in.
Qlemo

query session /server:192.168.x.x
Ted Penner

ASKER
Error 5 getting session names, access denied.  I tried hostname and fully qualified hostname also
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Qlemo

Then try by making a network drive connection first, which provides the appropriate credentials:
net use \\192.168.x.x /u:Domain\User Password
query session /server:192.168.x.x
net use \\192.168.x.x /d

Open in new window

Ted Penner

ASKER
I'm not 100% clear on what each line does.
In line 1 specifically, u seems to indicate user but then you typed Domain.  I'm a little fuzzy here.
Qlemo

Domain is either the domain or computer name. User and Password are obvious, and need to be replaced, like the IP.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Ted Penner

ASKER
you didn't understand my question
Qlemo

You didn't understand the answer?!
Ted Penner

ASKER
Does U: mean user?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
Qlemo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question