How to determine who is logged in

T

Tim Sanders

How can I determine who is logged into my Windows 2000
server and if they have any open files? I'm using Active
Directory. I need to reboot the server, but i don't want
to go around to each user and ensure that they have saved
their files and logged off.

Thanks,

Tim Sanders, CNE
 
S

Simon Geary

Open the Computer Management console on the server and expand to System
Tools > Shared Folders > Open Files
 
M

Mike Matheny

This will only show you if there are any open files - not if they are logged
on and have no files open.
 
R

Richard Moreno

Mike-

If you want to know who's logged on remotely, you can try this script:

strComputer = "computername"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colComputer = objWMIService.ExecQuery _
("Select * from Win32_ComputerSystem")
For Each objComputer in colComputer
Wscript.Echo objComputer.UserName
Next

If you are at the console, you can hit CTRL-ALT-DEL. If you are connected
via TS you can go to Start-Settings-Control Panel-Windows Security. Also you
could use Winstation Monitor part of the Resource Kit.

Thanks
Richard Moreno
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top