I *do* know this question has been asked, but I want to see if there is any updated method or better way.
What I need is a way to log everytime a user logs into our domain on a Windows 2000 server, with user name, date & time; and if possible, what time they log off.
I found this script yesterday here on E-E:
for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set dt=%%i-%%j-%%k-%%l
echo %username% log into %logonserver% at %time% %date% >> \\lri-server\logs\%dtt%.log
This script only works if you are logging on the server directly. I need the logs to be stored on the server, not on the workstation.
One reason I need this information is to know if a user is coming into the office after hours, what time they were on the network and when they logged out.
Obviously, I need the log to be appended so that each new user is added to the list, not a new list created.
Thanks for your help.....