what about making a pupil_WKSTA_control_group and giving it rights on each wksta.
then add the teachers you want to have rights to that group.
neater, cleaner and easier to control approach.

now, instead of having all those run lines, consider this:
Code:

$ICT1_machineCount = 32
for $=1 to $ICT1_machineCount
;Run "c:\winnt\system32\beyondexecv2 \\ICT1-"+right("0"+$,2)+" c:\winnt\nircmd.exe mutesysvolume 1"
next

_________________________
!

download KiXnet