View Full Version : Using a script to create a log!
adamdelves
06-09-2001, 08:50 PM
I want to write a script which logs the user name and time every time a user logs on. What method do i use to run for example, notpad, send the requied information, and save it to the HD without the user being aware?
RWSchlatter
06-10-2001, 05:41 PM
depends stongly on your environment.
if you have a Win server where the user logs on, then enable the Audit feature, and you will have the event log to read, no extra work.
if you wish to do an audit trail on a Win9x/ME, then be aware, that this an insecure environment and a user can delete your logfile. Possible solution: enter a COMMAND.EXE CSRIPT <makelog>.vbs (or .js) into the users HKCU RUN key. The script will run everytime the user makes a local logon.
______________
Regards - Richard
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.