Solved

Command to see what users are loged on to a remote machine

Posted on 2006-07-23
8
345 Views
Last Modified: 2013-11-21
Question:

You have been given a computer name and have been asked to remotely find out  who is logged onto it – what command would you use?


Would this be nbtstat - a??? heve tried it but it doesnt seem to let you know who is logged on to it.

Anyone know what commend you would use?

Thanks
0
Comment
Question by:capitalpro
8 Comments
 
LVL 34

Expert Comment

by:PsiCop
ID: 17163511
What OS?

Use "finger" or "who" in Linux or UNIX.
0
 
LVL 13

Expert Comment

by:stergium
ID: 17164102
in case of a windows box you can try a network scan. download a free version of the GFI languard www.gfi.com. That program shows you who is logged in among other information. But i must warn you that this procedure is illegal(at least in most countries, certently in EU) in case of you scanning across networks.
0
 
LVL 3

Expert Comment

by:omrisiri
ID: 17164615
you could use an excellent software from sysinternals called psloggedon which is part of the pstools package -
http://www.sysinternals.com/Utilities/PsTools.html - and it's free!
0
 
LVL 9

Expert Comment

by:Krompton
ID: 17167034
I would also recomend the tools from sysinternals. I use them all the time. But you'd better download them soon. I heard Sysinternals was purchased and that those tools may end up not being free.

Krompton
0
Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

 

Expert Comment

by:Strike_2
ID: 17185684

MY tool of choice is the Angry IP scanner, available at:
http://www.angryziber.com/ipscan/

Before scanning, go to [Options] --> Select Columns
You can tell it to look for almost anything.

It can also export anything it finds for later processing

Quick Tip: If you're using a Linux server with a Samba domain, you can find out what users are on what computers with smbstatus
0
 
LVL 2

Expert Comment

by:Pankaj Chauhan
ID: 17200179

The command below will help you out if you are using Terminal services.

Go to the command prompt and run the following command. Query session

In your case the command would be: Query session /server:<server IP>



Displays information about sessions on a terminal server. The list includes information not only about active sessions but about other sessions that the server runs.
0
 
LVL 2

Accepted Solution

by:
Pankaj Chauhan earned 500 total points
ID: 17200206
CHECK OUT THE COMPLETE SYNTAX FOR THE QUERY SESSION COMMAND

Syntax

query session [{SessionName | UserName | SessionID}] [/server:ServerName] [/mode] [/flow] [/connect] [/counter]

Parameters

SessionName

The name of the session you want to query.

UserName

The name of the user whose sessions you want to query.

SessionID

The ID of the session you want to query.

/server:ServerName


Identifies the terminal server to query. The default is the current server.

/mode

Displays current line settings.

/flow

Displays current flow-control settings.

/connect

Displays current connect settings.

/counter

Displays current counters information, including the total number of sessions created,
disconnected, and reconnected.

/?

Displays help at the command prompt.


FOLLOW THE LINK FOR COMPLETE TERMINAL SERVICES COMMANDS

http://technet2.microsoft.com/WindowsServer/en/library/1db49727-f587-424d-8d98-bb51630d13a01033.mspx?mfr=true

I HOPE THIS WOULD HELP
0
 

Author Comment

by:capitalpro
ID: 17297394
Thanks
0

Featured Post

Too many email signature changes to deal with?

Are you constantly being asked to update your organization's email signatures? Do they take up too much of your time? Wouldn't you love to be able to manage all signatures from one central location, easily design them and deploy them quickly to users. Well, you can!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now