+ Post New Thread
Results 1 to 8 of 8
Windows Thread, Restrict accounts to only log in for a certain number of hours in Technical; Not quite sure what forum to post this on as it's a little bit servery but I thought I'd tried ...
  1. #1

    Join Date
    Nov 2007
    Location
    Rotherham
    Posts
    1,679
    Thank Post
    122
    Thanked 126 Times in 102 Posts
    Rep Power
    46

    Restrict accounts to only log in for a certain number of hours

    Not quite sure what forum to post this on as it's a little bit servery but I thought I'd tried here...

    Does anyone know of a way, either through Win2K3 or third party app to restict accounts for a certain amount of time. then lock them out. For example, there are a couple of examination that we have to do that give the pupils a certain amount of time to complete the examination. This is done in lesson time and the teacher has to keep records of who has been there, how long they have worked etc etc. When the year is split into two classes and occasionally pupils will miss lessons or there are technical problems its a bit of a nightmare. What I want it to be able to create dummy account for the students to do their exam in, that account can only be accessed for 20 hours (for example) and after that it locks them out.

    Any ideas?

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,867
    Thank Post
    412
    Thanked 778 Times in 651 Posts
    Rep Power
    182
    Userlock, which is third-party AFAIK.

  3. #3

    elsiegee40's Avatar
    Join Date
    Jan 2007
    Location
    Kent
    Posts
    10,181
    Thank Post
    1,922
    Thanked 2,413 Times in 1,767 Posts
    Rep Power
    840
    In Sever 2003 AD, go to the properties of a user.

    Select the Account tab and you can set logon hours there - it's in whole hours, you can't fine tune it to 12.15 to 1.30pm or whatever.

    The in GP (Computer settings) you can force logoff when logon hours expire, BUT you need to be careful about forcing logoff in any case as the user must have the oppportunity to save their work first.

  4. #4

    Join Date
    Nov 2007
    Location
    Rotherham
    Posts
    1,679
    Thank Post
    122
    Thanked 126 Times in 102 Posts
    Rep Power
    46
    Quote Originally Posted by elsiegee40 View Post
    In Sever 2003 AD, go to the properties of a user.

    Select the Account tab and you can set logon hours there - it's in whole hours, you can't fine tune it to 12.15 to 1.30pm or whatever.

    The in GP (Computer settings) you can force logoff when logon hours expire, BUT you need to be careful about forcing logoff in any case as the user must have the oppportunity to save their work first.
    Sorry you mis-understand. I know how to restict their login hours. What I would like to do is restict and account to only be active for 20 hours of usage.

  5. #5
    Butuz's Avatar
    Join Date
    Feb 2007
    Location
    Wales, UK
    Posts
    1,579
    Thank Post
    211
    Thanked 220 Times in 176 Posts
    Rep Power
    63
    We create exam accounts here for each exam and manually enable/disable them based on the exam timetable the teacher gives us. It only takes 5-10 mins per day really and not something used often enough to need automation.

    Butuz

  6. #6

    Join Date
    Nov 2007
    Location
    Rotherham
    Posts
    1,679
    Thank Post
    122
    Thanked 126 Times in 102 Posts
    Rep Power
    46
    That's the one but it assumes that your teachers are capable of giving you correct information

  7. #7
    Butuz's Avatar
    Join Date
    Feb 2007
    Location
    Wales, UK
    Posts
    1,579
    Thank Post
    211
    Thanked 220 Times in 176 Posts
    Rep Power
    63
    Quote Originally Posted by Stuart_C View Post
    That's the one but it assumes that your teachers are capable of giving you correct information
    True - luckily most of the exams are for ICT and Business Studies and their both pie hot with the timetables etc.

  8. #8


    Join Date
    Mar 2008
    Location
    Surrey
    Posts
    2,306
    Thank Post
    128
    Thanked 351 Times in 290 Posts
    Blog Entries
    4
    Rep Power
    141
    The simplest way I can think of to do this would be to create logon/off scripts which log the time when a user logs on and off. If you had this created as an environment variable at logon, then calculated the difference at logoff and stored this to a file you could set it up so that once the logged time gets over a certain amount the script disables the account in AD.

    I'll see if I can work out the scripts when I get some spare time.



SHARE:
+ Post New Thread

Similar Threads

  1. Restrict logon
    By markesmith in forum How do you do....it?
    Replies: 3
    Last Post: 12th February 2009, 12:45 PM
  2. clear old cookies on log off (or log on)
    By ZeroHour in forum Scripts
    Replies: 0
    Last Post: 4th November 2008, 10:32 AM
  3. Can log on Local can't log on to domain
    By speckytecky in forum Network and Classroom Management
    Replies: 16
    Last Post: 25th April 2008, 01:05 PM
  4. Replies: 3
    Last Post: 1st August 2007, 11:00 PM
  5. Restrict Logon
    By DSapseid in forum Wireless Networks
    Replies: 7
    Last Post: 28th March 2007, 11:30 AM

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
  •