Results 1 to 4 of 4

Thread: Session Time / Time quotas

  1. #1
    mreese is offline Getting Started on GPanswers.com
    Join Date
    Dec 1969
    Posts
    3

    Default Session Time / Time quotas

    Hello,

    I'm looking to see if there is a way to setup a session time or time quota on windows 7.

    We are looking at installing 2 computer to be used like a kiosk in our University Center for students to check e-mail, web, etc..

    One of the requests is to have the systems auto logoff after 15min. Information has been found and set to log off on inactivity but that only one side of what they want done.

    Thanks for any help you can provide.

  2. #2
    trekker Guest

    Default

    If you want something that is going to be enforced that the user can't get around, you may have to look third-party. However, there is a way you can do this with a Preference. Create a Scheduled Task (that runs as the logged in user) that begins at logon and is delayed for 15 minutes that runs a shutdown /l /f . Just be aware that a savvy enough user will be able to circumvent it.

  3. #3
    mreese is offline Getting Started on GPanswers.com
    Join Date
    Dec 1969
    Posts
    3

    Default

    Thanks for the information. I'll try this and see how it works. If you or anyone knows of a third-party software we can look in to that as well. Downside is we only have a need for this on 2 systems at this time.

  4. #4
    mreese is offline Getting Started on GPanswers.com
    Join Date
    Dec 1969
    Posts
    3

    Default work around

    VBscript in Startup.

    Dim Act
    set ws = CreateObject("WScript.Shell")

    Const Hidden = 0, Normal = 1, Min = 2, Max =3, Recent = 4, Current_Size = 5,Min_ActiveSame = 7,Defualt_Call_State_ByApp =10

    Set Act = CreateObject("Wscript.Shell")

    ws.Popup "N O T I C E: Your session is 15 minutes ! !",15,"NOTICE" 'wait for 15 seconds

    ' WScript.Echo " N O T I C E: Your session is 15 minutes ! !"

    WScript.Sleep 10 * 60 * 1000

    ws.Popup "N O T I C E: The computer will logoff in 5 minutes ! !",15,"NOTICE" 'wait for 15 seconds

    ' WScript.Echo " N O T I C E: The computer will logoff in 5 minutes ! !"

    WScript.Sleep 5 * 60 * 1000
    Act.Run("%comspec% /C Echo Off && logoff.exe"),Hidden,True


    -------------
    I changed from echo to using popup. With Echo, if you do not click the ok button the script would not advance.

    With Popup you can set a time out.
    Last edited by mreese; 02-06-2012 at 03:11 PM. Reason: Updated Script

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Friendly URLs by vBSEO