+ Post New Thread
Results 1 to 14 of 14
Windows Thread, Automatic logout after 30 minutes of use. in Technical; Hello, I am looking for a way to automatically logout students after 30 minutes of computer use, preferably with a ...
  1. #1

    Join Date
    May 2008
    Location
    Essex
    Posts
    9
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Automatic logout after 30 minutes of use.

    Hello,

    I am looking for a way to automatically logout students after 30 minutes of computer use, preferably with a given warning and a timer to show how long the student has left.

    Its a pretty daft idea, I know, but ive got to do what im told.

    Thanks in advance!

  2. #2
    stitch's Avatar
    Join Date
    Jan 2006
    Location
    Wales
    Posts
    88
    Thank Post
    29
    Thanked 5 Times in 5 Posts
    Rep Power
    17
    Hi

    We use the Winexit screensaver which comes with Windows 2003 Resource Kit tools which is free. Works great.

  3. #3

    Join Date
    May 2008
    Location
    Essex
    Posts
    9
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks for the suggestion, I was looking for something that would automatically log the student off 30 minutes after they have logged in, for instance, when there was 5 minutes left a popup would come up saying that they have 5 minutes remaining and to save any work.

    Its along the same idea as they use in internet cafes and such. Basically they want to implement it to keep rotation going on people using computers.

    Ill have to have a read into the 2003 Winexit, from what ive seen from a brief skim through it seems its only the screensaver coming on that logs the user off, I appreciate your suggestion though, thanks

  4. #4

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    64
    How about automating a shutdown/reboot in 30 mins from the logon script - will give you an uncancellable countdown and a dialogue box. Be prepared for much screaming when it gets to 0 and they haven't saved their work though!

  5. #5
    Dafty's Avatar
    Join Date
    Nov 2007
    Location
    Lincolnshire
    Posts
    100
    Thank Post
    27
    Thanked 1 Time in 1 Post
    Rep Power
    0
    On the same sort of lines. Is there anyway of centrally shutting down machines if they are not used within 30 mins or so? (providing they are logged off)

  6. #6

    Join Date
    May 2008
    Location
    Essex
    Posts
    9
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by OutToLunch View Post
    How about automating a shutdown/reboot in 30 mins from the logon script - will give you an uncancellable countdown and a dialogue box. Be prepared for much screaming when it gets to 0 and they haven't saved their work though!
    Ill have to run that past my network manager, thanks for the suggestion!

  7. #7
    Galway's Avatar
    Join Date
    Jun 2007
    Location
    West Yorkshire
    Posts
    1,015
    Thank Post
    6
    Thanked 215 Times in 153 Posts
    Rep Power
    61
    And what would happen if the student logged on 10 mins before the lesson finnished ?

    Id set a server to schedule a remote logoff/reboot at the specified times. So long as all the machines are on it should work ok regardless of when the student logged on.

  8. #8


    Join Date
    Jul 2007
    Location
    Rural heck
    Posts
    2,662
    Thank Post
    120
    Thanked 434 Times in 353 Posts
    Rep Power
    125
    Quote Originally Posted by Dafty View Post
    On the same sort of lines. Is there anyway of centrally shutting down machines if they are not used within 30 mins or so? (providing they are logged off)
    Task Sheduler can be configured to run a task if the computer is idle for more then a given amount of time. You can creat tasks via a commands line (use something like PSEXEC to apply them on remote machines).

    EDIT: Actualy you don't need PSEXEC. The Schtaskc command can work remotely.
    Last edited by K.C.Leblanc; 10th May 2008 at 01:08 PM.

  9. #9

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,392
    Thank Post
    797
    Thanked 1,588 Times in 1,391 Posts
    Blog Entries
    10
    Rep Power
    427
    Quote Originally Posted by OutToLunch View Post
    How about automating a shutdown/reboot in 30 mins from the logon script - will give you an uncancellable countdown and a dialogue box. Be prepared for much screaming when it gets to 0 and they haven't saved their work though!
    Yep it think that is the way forward. All you do is have the script set the time to countdown and at the bottom have a logoff command so once its counting has done it will boot the user off. You can also get it to tell them how many seconds they have left.

    But the problem is what about when you donít want them to have 30 minutes what if you want it to be longer? Do you want something you can just turn off and on?

  10. #10

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,692
    Thank Post
    824
    Thanked 2,570 Times in 2,187 Posts
    Blog Entries
    9
    Rep Power
    731
    Code:
    shutdown /a
    Will abort a pending shutdown like the one you describe, you could use psexec or something to send out the command to disable the pending shutdown for the required users.

  11. #11

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,218
    Thank Post
    2,769
    Thanked 935 Times in 875 Posts
    Rep Power
    343

    vbscript

    you could use a function something like the link below to count down 25 minutes and execute a hta :

    View Code Snippet

    The hta would then have a timer of 5 mins that would display the 5 minute countdown and then use wmi to do a force log off once the timer has counted down the 5 mins.

    Just a thought

    Code:
    Forcing User Logoff
    
    Const x = 4 'This can be changed to one of the following:
    '0 = Logoff
    '1 = Shutdown
    '2 = Reboot
    '4 = Forced Logoff
    '5 = Forced Shutdown
    '6 = Forced Reboot
    '8 = Power Off Computer
    '12 = Forced Power Off
    
    strComputer = "." 'This can be changed for remote machines
    strNamespace = "\root\cimv2" 'This can be changed for namespaces
    
    Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _
    & strComputer & strNamespace)
    Set colOperatingSystems = objWMIService.ExecQuery _
    ("SELECT * FROM Win32_OperatingSystem")
    For Each objOperatingSystem in colOperatingSystems
    ObjOperatingSystem.Win32Shutdown(x)
    Next
    the above code is near the end of this page :

    http://www.2000trainers.com/windows-...scripting-wmi/
    Last edited by mac_shinobi; 11th May 2008 at 07:49 AM.

  12. #12

    Join Date
    May 2008
    Location
    Essex
    Posts
    9
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Wow, thanks a lot, the last post was just what I was looking for.

    Thanks again!

  13. #13

    Join Date
    Apr 2010
    Location
    Chicagoland
    Posts
    9
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    0
    Quote Originally Posted by Dafty View Post
    On the same sort of lines. Is there anyway of centrally shutting down machines if they are not used within 30 mins or so? (providing they are logged off)
    Sorry to bring up an old thread, but I found it while searching and was thinking about this. I have a vbscript that lets you remotely shutdown computers in an OU or by an IP range if not logged onto, but you just schedule it to run at a specific time and it wouldn't know if they are idle or not for 30 minutes... just whether they are logged in or not at that specific time the script is run.
    Couldn't you run winexit.scr or SS Ops or another screensaver as the DEFAULT profile so it runs when no one is logged on and then configure it to shutdown? The only downside is that if anyone's first logon is on that machine it would pull those Default user settings over to their account, so you'd want to change their screen saver settings.
    Last edited by Seker; 22nd September 2010 at 05:24 AM.

  14. #14

    Join Date
    Sep 2010
    Location
    Southern California
    Posts
    16
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    If you're running Windows XP, Windows SteadyState allows for that option.

SHARE:
+ Post New Thread

Similar Threads

  1. [CLOSED] Improvement: Logout Timeout?
    By bjohnny42 in forum EduGeek.net Site Problems
    Replies: 1
    Last Post: 2nd May 2008, 10:53 AM
  2. Replies: 2
    Last Post: 28th March 2008, 11:16 AM
  3. Waste 10 minutes and feed the world...
    By SpuffMonkey in forum Jokes/Interweb Things
    Replies: 4
    Last Post: 13th November 2007, 10:47 AM
  4. Time formula for hours and minutes
    By timbo343 in forum How do you do....it?
    Replies: 5
    Last Post: 1st October 2007, 05:55 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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