View Full Version : WinXP command to determine who is logged in?
Kenny_Stang
12-02-2004, 01:58 PM
Is there a command you can run off the command prompt in WinXP to determine who is logged into a computer over the network?
I can run nbtstat -s [computer name] and get an IP and MAC address, but I want a user name if possible.
trey85stang
12-02-2004, 07:58 PM
[QUOTE=Kenny_Stang]Is there a command you can run off the command prompt in WinXP to determine who is logged into a computer over the network?
I can run nbtstat -s [computer name] and get an IP and MAC address, but I want a user name if possible.[/QUOTE]
net user
Kenny_Stang
12-03-2004, 08:10 AM
[QUOTE=trey85stang]net user[/QUOTE]
Not sure if that will work, and if so what is the syntax for it. If i just type net user I get the user accounts that are on the local machine, but not any domain user accounts. Basically I want a command I can execute from my system, point it to a ceratin IP or Computer Name and it will tell me who is logged into that system currently. Anything like that?
trey85stang
12-03-2004, 09:29 AM
[QUOTE=Kenny_Stang]Not sure if that will work, and if so what is the syntax for it. If i just type net user I get the user accounts that are on the local machine, but not any domain user accounts. Basically I want a command I can execute from my system, point it to a ceratin IP or Computer Name and it will tell me who is logged into that system currently. Anything like that?[/QUOTE]
dont know about that one... but I thought net user would give domain users that were logged in remotley?? maybe not then? net user only works from the local machine, I dont think windows realy has any command line utils for checking connected users from one machine on a remote machine.
I am unsure of any other winders commands.
Stang2be
12-03-2004, 11:15 AM
are you talking about an AD domain environment or just over the internet? Most tools along those lines woulc require you having admin rights to the target host.
I can't think of anything off hand but there are some ways to get an idea who is logged in.
\\hostname\c$\documents and settings\ and then look at the folders there for the users that have logged in and see the time stamp on the folder.
Kenny_Stang
12-03-2004, 11:42 AM
[QUOTE=Stang2be]are you talking about an AD domain environment or just over the internet? Most tools along those lines woulc require you having admin rights to the target host.
I can't think of anything off hand but there are some ways to get an idea who is logged in.
\\hostname\c$\documents and settings\ and then look at the folders there for the users that have logged in and see the time stamp on the folder.[/QUOTE]
Yes this is an AD environment, and I am a admin on all machines on the network. I could do what you said above, but was looking for an easier way to be honest with you. I have DameWare on my system and I can more or less get the info I need from that, but it takes a little digging.
Stang2be
12-03-2004, 09:52 PM
sorry was just checking. never can tell if someone is just trying to get into someone elses box.
I'll see if I can come up with any other ideas. might get lucky and find someone that has written a vb script to do what your wanting.
:)
trey85stang
12-03-2004, 10:03 PM
[QUOTE=Kenny_Stang]Yes this is an AD environment, and I am a admin on all machines on the network. I could do what you said above, but was looking for an easier way to be honest with you. I have DameWare on my system and I can more or less get the info I need from that, but it takes a little digging.[/QUOTE]
with what stang2be mentioned above... HAve you talked to that NT guy that used to sit in the office behind me?? I forget his name.. but he had all kinds of vb scripts doing stuff like what you are wanting.. might check with him and see if he has anything.
I know on win2k the clipboard viewer used to be useful in telling who was on machines, assuming they used cut and paste. I'm not sure you can even use it with XP though. We used to have some people that knew the net send command, it was annoying as hell until I'd figure out who it was and nail them with paper wads.
Stang2be
12-07-2004, 08:20 AM
Thats why you disable command prompt in group policies :)
Knocks out a lot of possible troubles.
vBulletin v3.0.6, Copyright ©2000-2008, Jelsoft Enterprises Ltd.