Our students have gotten wise to this trick over the past couple of days. I set the GPO settings as indicated above but they are not working as expected.
As a temporary solution I added this vbs script to the local computer and added it to run at system logon. The script checks, after 30 seconds, to see if the students home drive (in our case U: ) and another network drive common to all students (O: ) exists. If not, the user gets logged off.
It should work until I can straighten out the GPO issues.
I also have a meeting with the principal and a student who broke the tab on a network cable trying to get it back in. The tab got jammed in the computer's nic and bent one of the contacts. I was able to get it straightened out but do not have much time to deal with hardware damage. I am going for a combined approach of tech and some discipline.
VBS 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\CurrentVersion\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