WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

User Sample

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Session Log Service

 Keywords: session log logon shutdown Terminalserver

Here is a service to record user sessions in a database. Header of the SessionLogService.wbt
;==========================================================================================================
; SessionLog Service
;
; inifile to control debugging and boxtext: 
;  filename=SessionLogService.ini
;  | [main]
;  | debugtrace=0 or 1
;  | boxtext   =0 or 1
;
; database:
;  tablename:  'UserSessions'
;  | usersessions.event      char(10)
;  | usersessions.event_time char(20)
;  | usersessions.machine    char(20)
;  | usersessions.account    char(20)
;
;  connection to database by .udl: 'session.udl'
;
; 2011-04-30 Lars M. Doornbos
;==========================================================================================================
Download complete script sample here:[SessionLogService.zip]
Article ID:   W18276
Filename:   Session Log Service.txt
File Created: 2019:08:14:09:34:20
Last Updated: 2019:08:14:09:34:20