How can I limit the number of active local sessions


  1. Posts : 57
    Windows 7 Professional x64 w/SP1
       #1

    How can I limit the number of active local sessions


    I wasn't really sure which forum to post this under, but my concern is based on the limited resources available to PCs so I put it here; anyway ....

    I'm interning/working at a college, and right now we're talking about the issue of students walking away from the PCs without logging off. While everyone is in agreement that a lockout policy of, say, 30 minutes can mitigate the risks associated with this behaviour, I'm concerned with the PCs slowing down with too many of these locked sessions.

    Our PCs are configured to reboot once every week, so if two students walk away from the PC each day without logging off (which I think is a conservative estimate), leaving all their programs open, there could be 10+ active, but disconnected, sessions end of day friday, slowing the PC down for any students who have a night class and logon to that PC.

    So is there a way we can put a limit on how many active, local sessions there can be a computer? I'm hoping for something that goes along the lines of
    Code:
    IF new user logging on AND current active sessions >= 3
       force logoff oldest session
    ELSE
       continue as normal
    Any existing programs/built-in windows tools or help with making a script for this would be cool

    Edit: I should mention we don't want to logoff idle users since some classes are 3+ hours, and if a student stops working for a bit during a lecture we wouldn't want to close their work on them and have them lose everything
    Last edited by vv211; 11 Jan 2016 at 21:15. Reason: adding stuff
      My Computer


  2. Posts : 7,107
    W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
       #2

    Hi Samuri,
    have a look at this, (note Home premium does not have group policy)
    https://www.google.co.uk/url?sa=t&rc...Z-GsyAe9_qpVxg
    Roy
      My Computer


  3. Posts : 57
    Windows 7 Professional x64 w/SP1
    Thread Starter
       #3

    Thanks for the suggestion, but unless I'm misunderstanding what Terminal Services is, it's similar to Remote Desktop. These are all students who login locally on the PC's, and then will walk away from them when they're finished; nothing is being done remotely.

    All PCs have Windows 7 Enterprise installed
      My Computer


  4. Posts : 6,285
    Windows 10 Pro X64
       #4
      My Computer


  5. Posts : 2,497
    Windows 7 Pro 64 bit
       #5

    Ztruker said:
    This requires an Active Directory domain which must be hosted on a server OS. Not relevant to the current situation.
      My Computer


  6. Posts : 57
    Windows 7 Professional x64 w/SP1
    Thread Starter
       #6

    LMiller7 said:
    Ztruker said:
    This requires an Active Directory domain which must be hosted on a server OS. Not relevant to the current situation.
    We are using and AD domain. But there's also no guarantee that students will be logging in again at any other point during the week to kill their previous sessions.
    I'm looking at more of a worst case scenario, which in all fairness hasn't happened yet to my knowledge.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 09:06.
Find Us