Friday, 13 September 2013 00:00

Autologout.scr - Logout user after a period of idle time with a warning.

Autologout screenshot

A very simple screen saver that will present a large notification box for a specified period of time before logging the user off.

This very simple program was written in response to some data protection concerns at a school I work for. Teachers were logging onto machines all over the place and walking away. Locking the PCs was not an option as other people could not then use them.

Basic Usage

  1. Copy autologout.scr to %systemroot%\system32.
  2. Create an (optional) logo.bmp file in %systemroot%\system32. (Image is square in aspect, it will scale but displayed size is 140x140px).
  3. Set as the screen saver in Windows Screen Saver Settings

Advanced usage

To set the timeout value for the countdown dialog (default is 25 minutes) create a registry key in
HKEY_LOCAL_MACHINE\Software\Autologout\timeout (DWORD)
and specify the number of seconds. (NB: This registry setting is somewhere like
on x64 bit systems).

Deploying on a Domain with Group Policy on a per machine basis

  1. Copy autologout.scr to %systemroot%\system32 on domain member.
  2. Create an (optional) logo.bmp file in %systemroot%\system32. on domain member.
  3. Create a new Group Policy
  4. In
    User Configuration -> Administrative Templates -> Control Panel -> Display
    Screen Saver
    . Set
    Screen Saver executable name
    . Set
    Screen Saver timeout
    to the number of seconds before the main warning and countdown are displayed.
  5. In
    Computer Configuration -> Administrative Templates -> System -> Group Policy
    User Group Policy loopback processing mode
    to Replace. This insures that the user policy is overridden on a machine basis (otherwise this is a user GPO and won't be applied).


Is here Windows x86.

Source code

Is here.
Read 46084 times Last modified on Sunday, 02 November 2014 03:40


  • Comment Link Tieku Monday, 07 March 2016 19:18 posted by Tieku

    Hello Matt,

    Can you get this to lock the computer (screensaver) instead of logging the user out?

  • Comment Link Matt Smith Monday, 14 March 2016 01:00 posted by Matt Smith

    Hi Tieku,

    There is no point. Windows can do this with any screensaver already.



Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.