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
dockster

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
Airbot

Windows 7 Ultimate x64 SP1
 
 

My System SpecsSystem Spec
02 Mar 2010   #3
dockster

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
akira6968

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
autohost

Win7-64 Enterprise
 
 
Win7-64bit reg fix

Those instructions are not quite correct for Win7-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
dockster

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
autohost

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. Win7-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
Rinzwind

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
Thread Forum
BSOD after about 50 minutes of idle time
I am having a real problem tracking this problem down. The machine behaves perfectly during normal use but if a I walk away and leave it, typically, after about 50 minutes I get a BSOD. I have tried starting in Safe Mode (seemed as though this fixed the problem although I can't be sure). Tried...
BSOD Help and Support
auto lock after 30 minutes
I'm using windows 7 under local company network, I setup never shutdown monitor and harddisk, no screen password protection, I didn't press CTRL+ALT+DEL to lock the computer, but after I left my desktop for more than 30 minutes, system autoatically CTRL+ALT+DEL and lock my desktop, so how to...
General Discussion
Laptop auto-hibernates after 4 minutes immediately after Windows 7 upd
aaaa
Windows Updates & Activation
My internet disconnects every 5 minutes and never auto-connects?
Ok, this has become the most frustrating thing when trying to do work on the computer. I just don't understand why it is so difficult to stay connected to the internet with the most advanced router & high speed cable internet I could afford. I have a Netgear N600 Dual band router WNDR3400 and...
Network & Sharing
Win7 Ultimate x64 reboots while idle after 16 minutes
I have a weird problem where my Windows 7 reboots after being idle for 16 minutes and a few seconds. It's always at the same point, I have timed it a few times. There is no BSOD, it just reboots like someone pressing the reset button of the computer. However, if I uncheck the "automatically...
BSOD Help and Support
win7 wierd behavior after idle 15 minutes?
makes noises like it's rebooting (monitor is off so dont see the visuals), HD whirs a bit, then when I turn monitor on, the light blinks a few times like its not gonna come on. after a few seconds, monitor does come on and screen looks normal. do NOT hear the boot beep so I dont think computer shut...
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 17:27.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App