I wonder if anyone can help. I have created the following log on script, that creates two text files in separate folders for each and every each time a student logs on. One text file named with the computer name, one with the user name. The details within text files are the same . The reason for two files is so I can search by user or computer. My one issue with the script is that with the Compute named text files do not append a new entry if the computer is logged onto a second time, unless the PC is restarted in between, although the user text file appends perfectly for each and every user even if they log off , back on the same PC WITHOUT restarting, ie two entries in User A text file but only one in computer A text file. Does anybody know why this would be as it's the same info just being sent to different locations.
echo Log In %Date% %TIME% %USERNAME% >> \\servername\Computerlogon\%COMPUTERNAME%.log
echo Log In %Date% %TIME% %COMPUTERNAME% >> \\servername\Studentlogon\%USERNAME%.log