+ Post New Thread
Results 1 to 15 of 15
Network and Classroom Management Thread, students unplugging network cable in Technical; Not sure if this has been discussed on here before. students are unplugging the network cable before the group policy ...
  1. #1

    Join Date
    Apr 2007
    Posts
    11
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Blog Entries
    1
    Rep Power
    0

    students unplugging network cable

    Not sure if this has been discussed on here before.

    students are unplugging the network cable before the group policy is initiated, this gives them unlimited access to the internet.
    we use mandatory profiles, is there any way of stopping them??

  2. #2

    Join Date
    Apr 2006
    Location
    UK
    Posts
    939
    Thank Post
    39
    Thanked 70 Times in 54 Posts
    Rep Power
    30

    Re: students unplugging network cable

    Search and Ye shall Find!

  3. #3

    Join Date
    Apr 2007
    Posts
    11
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Blog Entries
    1
    Rep Power
    0

    Re: students unplugging network cable

    done a search before, nothing!!!

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,807
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

  5. #5

    GrumbleDook's Avatar
    Join Date
    Jul 2005
    Location
    Gosport, Hampshire
    Posts
    9,967
    Thank Post
    1,352
    Thanked 1,814 Times in 1,126 Posts
    Blog Entries
    19
    Rep Power
    600

    Re: students unplugging network cable

    The sad thing is that Geoff didn't even use the search engine for that ... he knows the URLs for all threads.

  6. #6

    Join Date
    May 2006
    Posts
    1,319
    Thank Post
    101
    Thanked 25 Times in 18 Posts
    Rep Power
    25

    Re: students unplugging network cable

    Quote Originally Posted by GrumbleDook
    The sad thing is that Geoff didn't even use the search engine for that ... he knows the URLs for all threads.
    Well that petabyte of hard disk space has to go to some use

  7. #7

    Join Date
    Apr 2007
    Posts
    11
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Blog Entries
    1
    Rep Power
    0

    Re: students unplugging network cable

    Many thanks geoff, I'll try this script

    'check for unplugged network cord during logon
    'checks for mapped drives
    'merge registry key to run
    '| Windows Registry Editor Version 5.00
    '| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run]
    '| "check-home-dir"="\"C:\\WINDOWS\\check-home-dir.vbs\""
    'copy this vbs file to c:\windows directory
    'John Cook - 03/2007

    Set WshShell = WScript.CreateObject("WScript.Shell")
    Set WshNetwork = WScript.CreateObject("WScript.Network")
    Set ObjFSO = CreateObject("Scripting.FileSystemObject")

    WScript.Sleep 30000 ' thirty seconds

    If ObjFSO.DriveExists("U:") Then
    If ObjFSO.DriveExists("O:") Then
    Else
    WshShell.Run "logoff.exe"
    End If
    Else
    WshShell.Run "logoff.exe"
    End If

    But how do I put in a statment that allows the administrator to log on without the vbs taking effect??

  8. #8

    Join Date
    Apr 2007
    Posts
    11
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Blog Entries
    1
    Rep Power
    0

    Re: students unplugging network cable

    I've answered my own question

    'check for unplugged network cord during logon
    'checks for mapped drives
    'merge registry key to run
    '| Windows Registry Editor Version 5.00
    '| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run]
    '| "check-home-dir"="\"C:\\WINDOWS\\check-home-dir.vbs\""
    'copy this vbs file to c:\windows directory
    'John Cook - 03/2007

    Dim objNetwork
    Dim strUserName
    Dim WshShell

    Set objNetwork = WScript.CreateObject("WScript.Network")
    Set WshShell = WScript.CreateObject("WScript.Shell")
    Set WshNetwork = WScript.CreateObject("WScript.Network")
    Set ObjFSO = CreateObject("Scripting.FileSystemObject")

    WScript.Sleep 5000 ' five seconds
    strUserName = objNetwork.UserName
    if strUserName = "Administrator" then
    else
    if ObjFSO.DriveExists("k:") then
    else
    WshShell.Run "logoff.exe"
    msgbox "Do not unplug the network Cable"
    End if
    End if

  9. #9

    Join Date
    Jun 2008
    Posts
    720
    Thank Post
    118
    Thanked 64 Times in 52 Posts
    Rep Power
    31
    I know it's an old thread, but what's contained in the check-home-dir.vbs?

  10. #10
    Batman's Avatar
    Join Date
    Mar 2009
    Location
    Northampton
    Posts
    940
    Thank Post
    115
    Thanked 118 Times in 74 Posts
    Rep Power
    40
    CHOCOLATE MONEY!! WOOOHOOO!


    Sorry... I'll go now....

  11. #11
    apoth0r's Avatar
    Join Date
    Apr 2007
    Location
    Northants
    Posts
    1,221
    Thank Post
    151
    Thanked 180 Times in 132 Posts
    Rep Power
    52
    Far too many Dr Peppers!

  12. #12

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65
    Quote Originally Posted by Chuckster View Post
    I know it's an old thread, but what's contained in the check-home-dir.vbs?
    That *is* check-home-dir.vbs - you need to copy the code into Notepad and save it as a vbs file in the path given. The ' at the start of the initial lines denotes a comment. The registry lines are there so you can create a reg file to merge and autorun check-home-dir.vbs if it is placed in the path shown in the comment.

  13. #13

    Join Date
    Jun 2009
    Posts
    372
    Thank Post
    14
    Thanked 3 Times in 3 Posts
    Rep Power
    20
    tagging onto this.... we already use the check-home script but i want to put something in place that when a user unplugs the network cable that something happens that either makes it a pointless task or requires some sort of intervention from a teacher to allow them to be able to work. The first i think would be easier and thinknig, if a network cable is unplugged then log the user off.

    I want to do this to stop kids unplugging them to get round netsupport and just generally playing silly buggers unplugging them.

  14. #14

    Join Date
    Sep 2008
    Location
    Durham
    Posts
    129
    Thank Post
    1
    Thanked 30 Times in 28 Posts
    Rep Power
    25
    Quote Originally Posted by centurio View Post
    students are unplugging the network cable before the group policy is initiated, this gives them unlimited access to the internet.
    The question I have to ask is how are they able to get unlimited access to the Internet if group policy is not applied? Why isnt your firewall preventing them?

  15. #15
    storkyIV's Avatar
    Join Date
    Oct 2008
    Location
    Bristol
    Posts
    41
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    All we did is "snip" the clips off of the connectors so that you have to use a screwdriver to unplug it!

SHARE:
+ Post New Thread

Similar Threads

  1. Split a network cable
    By alonebfg in forum Wireless Networks
    Replies: 27
    Last Post: 6th November 2008, 01:13 PM
  2. Recommend me a cable router please for home network
    By Kyle in forum Wireless Networks
    Replies: 12
    Last Post: 11th June 2007, 06:29 AM
  3. Network Cable Wiring Sequence
    By crc-ict in forum Wireless Networks
    Replies: 23
    Last Post: 16th May 2006, 04:30 PM
  4. Students and Network Cables
    By ninjabeaver in forum Wireless Networks
    Replies: 36
    Last Post: 23rd November 2005, 09:14 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
  •