Looking for someway of loggin who's logged on where. I have tried the following logon script:
echo %DATE% %TIME% %USERNAME% %COMPUTERNAME% >> 2003server\netlogon\logs\%USERNAME%.txt
echo %DATE% %TIME% %USERNAME% %COMPUTERNAME% >> 2003server\netlogon\logs\%COMPUTERNAME%.txt
It doesn't seem to work at the moment. I have given staff and pupils full control over the "logs" folder.
I use 2 bats:
First, fired from the login script:
call \\argus\whoswhere2\getinfo.bat >> \\argus\whoswhere2\loginlog.txt
Second, getinfo.bat fired from above:
Works ok here, just remember to empty loginlog.txt each term!:D
I wouldn't use the netlogon folder, create your own shared folder for the purpose (maybe two one for users, one for computers). Bare in mind students will need write access to the folder (make it a hidden share using $ at the end of the sharename).
Also you're missing the \\ from the UNC path. It might even require a mapped drive, I'm not sure.
Just update the \\server\share$ part and assign logon and logoff trackers as logon / logoff users scripts
Tosh74, thanks for the scripts. Changed and updated for our server.
Can I just call them from the logon batch file directly to the .vbs? Is there a way for it to run in silent mode?
hold up, got it working for admins.................log on as a teacher or student and I get a lovely VB - Permission Denied error but it still logs the logon times etc
Give staff and pupils full control over the particular share
I have the logon one working fine by calling the script from the logon batch file.
How does the logoff one work? Do you have to add it to logoff script in GP ?
sorry for the late reply.
I run the logon / logoff tracker scripts via AD GPO for staff and students. USER CONFIG/WINDOWS SETTINGS/SCRIPTS (Logon/Logoff). Logontracker assigned to logon and logoftracker assigned to Logoff. I tend to run my scripts hiddden USER CONFIG/WINDOWS SETTINGS/ADMIN TEMPLATES/SYSTEM/SCRIPTS/RUN LEGACY LOGON SCRIPTS HIDDEN.
My log files are on a hidden share on a server. Users have Change and READ permissions to the share itself and have full permissions (with the exception of Full Control and Modify) to the shared folder. I have to create the COMPUTERS and USERS subfolders before the script runs correctly.
Hope this helps you out.
Been using this for a while its excellent.
Originally Posted by tosh74
Those scripts from Tosh look perfect for what we need but I cannot get them working. It says line 23, char2, error path not found, code 800A003C.
Have you created a COMPUTERS and USERS folder under your server share ?
Originally Posted by Pottsey
Yes, currently have
strUserDirectory = "\\Hp-server\Log_Logs$\Users"
strCompDirectory = "\\Hp-server\Log_Logs$\Computers"
Just tripled checked the permissions and tried other folders. As usefull as they are I sometimes hate scripts.