How to determine who is logged in

  • Thread starter Thread starter Tim Sanders
  • Start date Start date
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
 
Open the Computer Management console on the server and expand to System
Tools > Shared Folders > Open Files
 
This will only show you if there are any open files - not if they are logged
on and have no files open.
 
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
 
Back
Top