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

Networks - Servers
plus
plus
plus
plus
plus
plus
plus

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

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:   W13490
Filename:   Log Off User after an Amount of Time.txt
File Created: 2000:12:26:14:16:24
Last Updated: 2000:12:26:14:16:24