locked
Log Off Idle User Session RRS feed

  • Question

  • I have a network of Windows 7 Enterprise 64 bit workstations managed by Server 2003 R2 Enterprise DC. We have screen lock set for 15 minutes of inactivity, but what I need is a way to auto-logoff any idle user session after 1 hour.

    .

    I've researched all day but have not found anything concrete. I cannot use third party software to do this, I need to be able to do this within configurable options of Windows 7 Enterprise.

    .

    I have tried using Task Scheduler to create a task to log off an inactive user (tested value was 15 minutes idle time). After returning to the computer I looked at the task status and it indicated it had executed successfully with the test user account, but the user did not get logged off, the session was still locked, as though nothing had happened.

    .

    I set my Task Scheduler task similar to this thread http://social.technet.microsoft.com/Forums/en/w7itprogeneral/thread/d358382c-e91b-4e91-a1e8-04c53cfd91ce however as mentioned the task executed but did not logoff the user.

    .

    The task is set to execute C:\Windows\System32\logoff.exe. It is set to run for account BUILTIN\Users. If the user simply goes to that folder and double clicks logoff.exe, it works. So I'm not sure why it's not behaving properly.

    .

    If anyone has any advice or a better way to do this I'd really appreciate your advice. Thanks!



    Wednesday, May 23, 2012 9:15 PM

All replies

  • Hi Highspeedlane,

    You may try winexit.scr, screensaver from Windows 2003 RK tools. It works perfectly fine in my Windows 7 x64 PCs here, but needs a registry permission change. (REF : http://support.microsoft.com/kb/156677)

    Windows 2003 RK Tools:

    http://www.microsoft.com/en-us/download/details.aspx?id=17657

    http://support.microsoft.com/kb/314999


    Ramesh Srinivasan | The Winhelponline Blog
    Microsoft MVP, Windows Desktop Experience


    Thursday, May 24, 2012 2:43 PM
    Answerer
  • Hi,

    There is no operation or option to achieve it. You may redirect to Script Center forum for assistance.

    Script Center

    http://social.technet.microsoft.com/Forums/en-US/category/scripting


    Ivan-Liu

    TechNet Community Support

    Monday, May 28, 2012 9:18 AM
  • Thanks for the suggestions but this is not going to resolve easily.

    .

    I can get Task Scheduler to work on a copy of Windows 7 Ultimate I have at home. Works great in fact, to log off an idle user session. At work though, where I'm working with a proprietary Windows 7 Enterprise build, it doesn't work at all.

    .

    On the Enterprise test version I'm working with at work, Task History shows successful execution of the task , but the user account remains logged on. I've tried multiple variations of the task settings, including what worked on my copy of Ultimate.

    .

    Next, I'm trying to make Task Scheduler execute logoff.exe when the screen saver is invoked. I don't have notes in front of me but from memory I can tell you I was working to get the Advanced Audit Policy to work with logon/logoff events to record a screen saver event and use that as the trigger (using a predetermined amount of delay before task execution).

    .

    I'll report back with the success or lack thereof of this effort, though depending on tomorrow's workload I may not get back to it until early next week.

    Wednesday, May 30, 2012 10:54 PM
  • Seems like the tool autologoff from wizardsoft does what you need managed with gpo. Google it :)

    Wednesday, September 19, 2012 9:39 PM
  • Ramesh,

    Do you have an email address?  I am still not able to get this to work in Windows 7 64 bit machines.

    Justin 

    Tuesday, December 16, 2014 5:47 PM