Discussion Locked

Logged on users

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is there a way for me to determine exactly which usernames are logged into my NT 4.0 domain at any given moment? I have been providing many users with usernames after successful completion of training. Now, I want to know who's using their credentials to actually logon.

Thanks,
Kurt G.

9 replies

by elmagoal

Try this scrip
; write a log file of when people logon to the system

;dim $file ;set a temp variable
$filename=@day + ".log"
$file = "\\server\shared\$filename"
$linetowrite = "@monthno/@mdayno/@year-@time @wksta @userid, @fullname"
if open(10, $file, 4) = 0
$q = writeline(10, $linetowrite + chr(13) + chr(10))
$q = close (10)
else
$q = open (10,$file,1) $q = close (10)
$q = open(10, $file, 4)
$q = writeline(10, " Date Time Computername UserID Full Name" + chr(13) + chr(10))
$q = writeline(10, "===============================================" + chr(13) + chr(10))
$q = close (10)
goto logfile

endif

or NT resource kit has a program USRSTAT that will doit.

by aaron_wurthmann

The above answers are great, for a quick fix... If you have a "home" directory or a logon script that maps drives. You can look and the "share" propertes on that folder with Server Administrator. And it will tell you who is using that folder, i.e. who is loged on. Come to think of it you could write a batch file to alert you when someone one logs in if you like. I can e-mail a logon script to you if you like.

by kurt g

Yes, please e-mail me a sample script, that would be great.

Thanks,
Kurt G.
kgollin1@wccc.edu

by cocosk

Hi Kurt

I think the simplest way assuming you have access to your serveer is to use Server Manager under Start Menu/Programs/Administrative Tools/Server Manager. Find your server's name, doubleclick, then click on users. It will show you usernames on which workstations.

Hope that's what you're looking for!
Sandie

by kurt g

Sandie,
Thanks for your response, these are all good answers. However, I have over three dozen servers and I can't check every one of them. I want to be able to use ONE utility or report to see who's on ALL servers, cumulatively, at once.

Thanks,
Kurt G.

This discussion is closed to new replies.