How to Log Off a User after Some Time
Keywords: log off
Question:
Is it possible and how can you get a winbatch script that is running in the background (or login time) that can logoff a user once a period of inactivity has been reached.That is, say 20 minutes has been reached and there has been no user activity, that user will be logged out.If it is possible, what would the script be like ?
Answer:
Have a script like:;WinHide("") ;activate this line ONLY after 120% debugged IntControl(12,5,0,0,0) ; activate this line after 80% debugged IntControl(66,0,1,0,0)compile it to an exe, rename it to *.scr and set it up as your screen saver, set to 20 minutes. The rename the screensaver setting applet (desk.cpl) to something like desk.xcpl to disallow the user from changing the screen saver.
Article ID: W13490Filename: Log Off User after an Amount of Time.txt