+ Post New Thread
Results 1 to 10 of 10
Scripts Thread, Teachers computers in Coding and Web Development; Hi, Does anyone know how to stop pupils logging on to a teacher computer? We want a script that shuts ...
  1. #1
    eric.777's Avatar
    Join Date
    Mar 2007
    Location
    .
    Posts
    12
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Teachers computers

    Hi,

    Does anyone know how to stop pupils logging on to a teacher computer?

    We want a script that shuts the computer down when the script see staff.txt
    on the root of c:\
    Any ideas

  2. #2
    SC-UK's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    569
    Thank Post
    36
    Thanked 85 Times in 71 Posts
    Rep Power
    30
    If the teachers computers are in a specific OU, then in the group policy settings under computer settings and security there is an option to stop certain users/groups logging in locally. Add the students group into this setting and your students will not be able to log in.

    Haven't got a Windows Machine with me at the moment so can't remember exactly where the setting is or what it is called but I'm sure somebody else will point it out.

    Tom

  3. #3
    eric.777's Avatar
    Join Date
    Mar 2007
    Location
    .
    Posts
    12
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Yes did it in GPO.
    Thanks for the fast response.

    Just wanted to be smart and shut the computer down when a pupils try to logon.

  4. #4
    SC-UK's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    569
    Thank Post
    36
    Thanked 85 Times in 71 Posts
    Rep Power
    30
    Quote Originally Posted by eric.777 View Post
    Yes did it in GPO.
    Thanks for the fast response.

    Just wanted to be smart and shut the computer down when a pupils try to logon.
    Do you mean smart or evil

  5. #5


    Join Date
    Jul 2007
    Location
    Rural heck
    Posts
    2,662
    Thank Post
    120
    Thanked 434 Times in 353 Posts
    Rep Power
    126
    if exist c:\staff.txt shutdown /s /f /c "Mr Eric is coming with his clue bat, leave while escape is still possible."

  6. #6

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Quote Originally Posted by eric.777 View Post
    Just wanted to be smart and shut the computer down when a pupils try to logon.
    Why? All that does is inconvenience the real teacher when they turn up for the lesson thirty seconds later.

  7. #7

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,172
    Thank Post
    868
    Thanked 2,699 Times in 2,288 Posts
    Blog Entries
    11
    Rep Power
    772
    Its easy to just have a permit list of users or groups instead:

    Quote Originally Posted by SYNACK View Post
    There is a way to do this that will allow you to just let the teachers on and block everyone else without needing to specify each group individually.

    Make sure you have a security group with your teachers in it. Then chuck the machine into its own OU under where it is at the moment in AD and add a new group policy object to that OU. Inside that group policy you want to go to:

    Computer Configuration> Windows Settings> Security Settings> Local Policies> User Rights Assignment: Log on locally

    Then remove the Users group and the add the group that you created earlier. This will let your two teacher log on and also allow administrators to in case they/you need to fix something.

    Have this setup in our school office to stop teachers messing with the reception computers.

    Adapted from: restricting who can log on to a certain machine

  8. Thanks to SYNACK from:

    dsquared2 (8th February 2010)

  9. #8

    Join Date
    Nov 2006
    Location
    Kendal
    Posts
    1,555
    Thank Post
    112
    Thanked 177 Times in 144 Posts
    Rep Power
    71
    Is it not easier to have your machines set up so who logs on determines the restrictions in place on that machine.

    Here we are set up so staff or students can log on to any machine and how they can see things on that machine or use things is down to who they are (via scripts and GPO). That way it makes no difference if a student logs onto a staff computer.

  10. #9

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,172
    Thank Post
    868
    Thanked 2,699 Times in 2,288 Posts
    Blog Entries
    11
    Rep Power
    772
    Sometimes you need to block a certain group from logging into a set of machines though, our systems are all locked down in the way you describe but certain machines, like the office ones are locked to only office people as the teachers used to go in there after school and trash stuff - move chair settings, jam the printer etc. In the same way the students are not allowd to log on to the office machines as they should not be in there anyway. It is just one more barrier to prevent damage and/or nusance.

  11. #10

    Join Date
    Nov 2006
    Location
    Kendal
    Posts
    1,555
    Thank Post
    112
    Thanked 177 Times in 144 Posts
    Rep Power
    71
    Quote Originally Posted by SYNACK View Post
    Sometimes you need to block a certain group from logging into a set of machines though, our systems are all locked down in the way you describe but certain machines, like the office ones are locked to only office people as the teachers used to go in there after school and trash stuff - move chair settings, jam the printer etc. In the same way the students are not allowd to log on to the office machines as they should not be in there anyway. It is just one more barrier to prevent damage and/or nusance.
    I see your point but it's pretty poor when you can't trust fellow professionals not to trash your workspace. I guess I'm lucky here because that sort of thing just doesn't seem to happen.

SHARE:
+ Post New Thread

Similar Threads

  1. Teachers moving computers
    By PEO in forum General Chat
    Replies: 17
    Last Post: 18th March 2008, 01:10 PM
  2. Done teachers now pupils turn - computers
    By russdev in forum General Chat
    Replies: 12
    Last Post: 17th October 2006, 06:04 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
  •