My developer has created an application called timelogger.exe This has been installed on all workstations and is working perfect. We have also created 2 VB scripts called login and logoff. The code is as follows
The login vbs works perfect and it writes the value login into the database. There is no problem with receiving logging in times from Logins. My issue is the logoff script is setup in a user group policy\scripts\logoff but this is not working. We are not receiving the users logout time in the database.
Questions I have are
1. Why is the Group logoff script not working, the group policy is being applied it was an existing GP so its working.
2. please do not comment on locations of the GP etc as I know what I am doing.
3. I need to know why the logoff script below cannot run the exe on the users C drive. It works manually by running the file. The file is below. I had some joy when It was a PowerShell script but not sure why as it's VB code!
It was running on logoff on Windows 7 machines when it was a PowerShell script in 2008 GPO. It would not work when you shut computers down. I thought logoff would still happen
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("C:\TimeLogger\TimeLogger.exe 'Logout'"), WaitUntilFinished
Set objShell = Nothing