Windows Guides Feed

Not too long ago we encountered some problem with our users that share PC’s in different locations on our network. Some users do not always log-off their PC’s when they have to go into the plant. Now from where they are on the network, they remote desktop into another workstation for a particular system developed in-house.

Now if a user does not log-off, this remote desktop connection stays logged-in and makes it so no-one else can use that PC. Therefore, I was tasked with finding a way to log a user off if there is no activity for a certain amount of time.

I searched on Google and couldn’t find any other solution except this one. This involves getting hold of the “winexit.scr” screensaver contained in The Microsoft Windows 2000 Resource Kit, or you can read about and download individual resources from this toolkit here.

You simply copy this .scr file into “C:\Windows\System32\”, then this screensaver will be available to select and configure like all the others.

Then you need to ensure that it will work with any user and not only Administrators. This you do by allowing access to a specific key in the registry.

01 Run regedit 500x282 Force Idle Users to Log Off After a Period of Inactivity [How To]

Run the Registry Editor

When you have opened the Registry Editor, you goto;

02 Control.ini  500x257 Force Idle Users to Log Off After a Period of Inactivity [How To]

HKEY_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\IniFileMappings\Control.ini

03 Permissions 500x257 Force Idle Users to Log Off After a Period of Inactivity [How To]

Right-click on “Control.ini” and click Permissions.

04 Add Force Idle Users to Log Off After a Period of Inactivity [How To]

In the Group or Usernames box, add Everyone, and then click Advanced.

05 Everyone Force Idle Users to Log Off After a Period of Inactivity [How To]

06 Advanced 500x378 Force Idle Users to Log Off After a Period of Inactivity [How To]

In the next dialogue box, with “Everyone” selected, click on Edit.

07 Set Key1 Force Idle Users to Log Off After a Period of Inactivity [How To]

Click the Set Value and Create Subkey check boxes to select them.

Click OK, and then click Apply and OK, and then click Apply and OK again.

Close Regedit

This causes the screensaver to work with any user that is logged on.

The last thing to do is to make sure the user does not change the screensaver to another one that will not perform the log-off function. This you need to set-up in the Group Policy Editor.

08 Run GPEdit.msc1 Force Idle Users to Log Off After a Period of Inactivity [How To]

When you have opened the Group Policy Editor, you go to:

09 GPEdit 500x282 Force Idle Users to Log Off After a Period of Inactivity [How To]

User Configuration -> Administrative Templates -> Control Panel -> Personalization

10 Screensaver Timeout 500x458 Force Idle Users to Log Off After a Period of Inactivity [How To]

Set “Screen Saver Timeout” to 300

11 Force Specific Screen Saver 500x458 Force Idle Users to Log Off After a Period of Inactivity [How To]

Set “Force Specific Screen Saver” to %SystemRoot%\System32\winexit.scr

12 Prevent Changing Screen Saver 500x458 Force Idle Users to Log Off After a Period of Inactivity [How To]

Set “Prevent Changing Screen Saver” to Enabled

13 Enable Screen Saver 500x458 Force Idle Users to Log Off After a Period of Inactivity [How To]

Set “Enable Screensaver” to Enabled

Close GPedit

Now, when the user has not moved the mouse or hasn’t typed anything in 5 minutes, the PC will be logged off automatically, allowing other users to make use of the network resources otherwise engaged.



Free PC tips by email

Search Windows Guides




Comments

  • Alan

    GPEdit is not available in Home Premium, how do we prevent the screensaver from being changed if we dont have Pro or Ultimate?

  • http://richr.org/ Rich

    Thanks for sharing your solution!


Computer tips in your inbox
Sign up for the Windows Guides newsletter to get PC tips and access to free Windows books (More details)

Enter your email address:
 

Popular Guides

See which sites have been visited on your PC (even if private browsing mode is used)

Create a Windows 7 System Repair Disc

Best Free Anti-malware

Hibernate vs. Sleep vs. Shut-Down

i3, i5, and i7; Dual, Quad, Hexa Core Processors. How to they Differ?

Intel's Ivy Bridge Processor: new Features

Submit Your Tip
Submit your computer tip to us; receive full credit for all published tips

Comments
Windows Guides on Facebook