I posted this question not too long ago, but closed it because I thought I understood the answer. I'm still missing something, so I'm re-asking it & have listed below what I've done.
Here's the script called logon.bat
echo %COMPUTERNAME%,%USERNAME%,%DATE%,%TIME% >> \\server\path\folder\\UserLogon.csv
I clicked on it from my desktop & from the server twice & got this csv file
server name myname Tue 04/03/2007 5:31 PM
server name myname Tue 04/03/2007 5:32 PM
server name Administrator Wed 04/04/2007 10:06 AM
server name Administrator Wed 04/04/2007 10:07 AM
My question is getting this to run automatically. I went to grp policy -> win settings -> scripts. In the logon script, I added the logon.bat file. Then I logged off, logged back on, & looked at the csv file. My thinking is that it would run automatically (not needing to double click) but I didn't see a new line in the csv file. Can someone help further? I also need this for all users & it looks like it's only logging per machine???