2 replies
by tarnoldi Accepted solution
by ole.kirk Accepted solution
Log user logon/logoff
First you have to make a .cmd or .bat file
this is my userlog.bat make one and save it
*******************************************
@echo off
rem Environment changes made after SETLOCAL has been issued are local to the batch file.
rem Environment changes made after ENDLOCAL has been issued are global to the system.
rem ~0,8% uses the first 8 caracters of the timestamp
rem %* is a command line var i use logon and logoff
SETLOCAL
set logtime=%TIME:~0,8%
ECHO %computername%;%username%;%DATE%;%logtime%;%*>>c:\userlog.csv
ENDLOCAL
exit
*******************************************
Start the Group Policy Editor (gpedit.msc)
and go to Computer Configuration\Windows Settings\Scripts (startup/Shutdown).
To add a script, double-click the entry "shutdown" in the right pane.
In the new window klik add...
In the new window klik Browse...
Browse to the file that you wish to add
then add script Parameters: LogOff
klik OK
This discussion is closed to new replies.
Trending Software posts
Sort by Trending