Who is logged on to Network

BrianFord
BrianFord used Ask the Experts™
on
Is there a way to look at who is currently logged on to the network? either view everyone logged on, or check if a particular user is logged?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hi,

Well, Simply right click on My Computer > Manage > Shares Folders > At here under 'Sessions' & 'Open Files' you can see who is logged in to your server and using which files.

Regards,
Faraz H. Khan
Hi,

The above will tell you who is actually connected to your server. In case you want to find out who is ON at network then you can use nbtstat command. Check here: http://www.windowsnetworking.com/kbase/WindowsTips/WindowsNT/AdminTips/Accounts/Nbtstatrevealswhoisloggedon.html

Regards,
Faraz H. Khan

Author

Commented:
Thanks for your help
I've looked at the link above but to be honest it doesn't make a lot of sense to me :( I just want to be able to see if a particular user is logged on to the network, regardless of what PC or server they may be using, is that possible?
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

I just want to be able to see if a particular user is logged on to the network, regardless of what PC or server they may be using, is that possible?                          

Why yes. PSTOOLS (http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx) has a utility called psloggedon that will poll all systems defined in AD to find what system a user's account is logged onto.
That's great thanks
I'll check that out in the morning :)
Premkumar YogeswaranSr. Analyst - System Administrator
Commented:
Hi,
Here is a VB Script to find the user loged in the remote system.

Just save the file with".vbs" extension and double click
it will ask for a computer name just provide the COMPUTER NAME or IP Address it will give you the current user loged in that computer.
strComputer = inputbox("Please enter the name of the computer:")

' Check that user entered a value
if strComputer = "" then
	wscript.quit
end if

ON ERROR RESUME NEXT ' Handle errors connecting to the computer (Not switched on, permissions error etc)
set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!//" & strComputer & "")

if err <> 0 then ' Check for error
	wscript.echo "Error connecting to specified computer: " & err.description
	wscript.quit
end if
ON ERROR GOTO 0 ' Turn off resume next error handling

set colOS = objWMI.ExecQuery("Select * from Win32_ComputerSystem")

For Each objItem In colOS
	if strUsers <> "" then
		strUsers = strUsers & ", " & objItem.UserName
	else
		strUsers = objItem.UserName
	End If
Next

wscript.echo "The following user(s) are logged on to " & strComputer & ":" & strUsers

Open in new window

Premkumar YogeswaranSr. Analyst - System Administrator

Commented:
To run the above script you need the ADMINISTRATOR Rights...!
(If you are a domain admin it will be great or else you should be a member of restricted group)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial