Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How can I...auto log off after xx minutes idle

26 Feb 2010   #1

Windows 7
 
 
How can I...auto log off after xx minutes idle

I am running 5 Windows 7 machines in condominium building. We just upgraded from old machines running WinXP to new ones with Windows 7 Home Premium 64 bit.

Previously, I was successfully able to install the winexit.scr from the WinNT resource kit and modify the appropriate registry permissions to get it to work.

I tried installing the same way on Win 7 and can't get it to work. Keep getting the registry error referenced in this MS Support article. Is it just me or does this not work on Windows 7?

I also tried setting up a task via task scheduler using shutdown.exe /l when idle for 15 minutes. But I can't get it to run with I append the /c "comment" or /t xxx time before log out. That would be another solution, but I would like to give users a 2 minute warning before it logs them out. When i try running 'shutdown /l /t 120' it just displays the shutdown help info. Same thing if I try the /c toggle. 'shutdown /l' works but instantly logs you off.

Any and all help is appreciated. I don't care which way I get it to work, but would like to get something working that accomplishes:

1) Logs out current user after a specified idle time
2) Displays some sort of message to user
3) Gives user ~ 2 minutes to save work, etc, or just move the mouse (winexit allowed for a 'cancel' button so if someone was there they could cancel the log off -- this would be the ideal situation)

Thanks.

My System SpecsSystem Spec
.

01 Mar 2010   #2

Windows 7 Ultimate x64 SP1
 
 

My System SpecsSystem Spec
02 Mar 2010   #3

Windows 7
 
 

thanks, appreciate it. Though that doesn't have an idle option and it crashes on me.

If anybody has any other ideas please let me know...
My System SpecsSystem Spec
.


30 Apr 2010   #4

windows 7 32bit
 
 
registry fix for you

this taken from How can I: Auto log user off after xx minutes? Shutdown.exe doesn't work with -l -t -c (why not!)

In order for non-administrators to be able to use WINEXIT, you must add Set Value and Create Subkey permissions for the group Everyone on the following registry key:
HKEY_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\IniFileMappings\Control.ini
To do this, use the following steps:

NOTE: You must be logged on with administrative rights to make these changes.

1. Start Registry Editor (Regedt32.exe).
2. Open the following key [by right-clicking control.ini]:
HKEY_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\IniFileMappings\Control.ini
3. click Permissions.
4. In the Name box, click or add Everyone, and then click the ADVANCED box for special permissions.
5. Click to select the Set Value and Create Subkey check boxes.
6. Click OK, and then click OK.
7. Quit Registry Editor, and then restart the computer.
http://support.microsoft.com/default.aspx/kb/156677


I have personally confirmed this to work on a windows 7 32bit htpc...lovin it
now to figure out how to change the message in the logoff box...
My System SpecsSystem Spec
14 Jul 2010   #5

Win7-64 Enterprise
 
 
Win7-64bit reg fix

Those instructions are not quite correct for Windows 7-64bit (Enterprise)
2. Open the following key [by right-clicking control.ini]:
HKEY_Local_Machine\Software\Microsoft\Windows NT\CurrentVersion\IniFileMappings\Control.ini

Here is the correct key for which you need to change permissions:
HKEY_Local_Machine\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\IniFileMappings\Control.ini

The rest of the instructions are fine.

I've just done it, and it got rid of the the "Error encountered while creating registry key." problem.
My System SpecsSystem Spec
15 Jul 2010   #6

Windows 7
 
 

Autohost -- Thank you for that information. I made the change. However, the settings for the screensaver (force logoff, delay) do not save.

Is there a solution for that?

I wish MS would update their support docs for this.
My System SpecsSystem Spec
19 Jul 2010   #7

Win7-64 Enterprise
 
 

Strange, because they work for me. I did the permissions thing on the HKEY_Local_Machine\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\IniFileMappings\Control.ini key, added EVERYONE to it, with the 2 special permissions. It saves changes just fine. Windows 7-64 Enterprise. I think I'm using the winexit.scr from the Win2003 Resource Kit, not the XP Resource Kit. They may be the exact same file though, I'm not sure.

My System SpecsSystem Spec
29 Jun 2012   #8

Mac OS X ;)
 
 

Just to point into a solution for inactive/idle logoffs (but more oriented towards businesses):
LogoffStandby
My System SpecsSystem Spec
Reply

 How can I...auto log off after xx minutes idle




Thread Tools



Similar help and support threads for2: How can I...auto log off after xx minutes idle
Thread Forum
Solved BSOD after about 50 minutes of idle time BSOD Help and Support
auto lock after 30 minutes General Discussion
Solved 11GB of storage space lost in under 4 minutes of idle? Software
Windows 7 Freezes after few minutes of idle (Dell E6410) BSOD Help and Support
Laptop Freezes/Crashes After 30 minutes Idle Time BSOD Help and Support
Win7 Ultimate x64 reboots while idle after 16 minutes BSOD Help and Support
win7 wierd behavior after idle 15 minutes? General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:57 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33