I work at a school where we currently enable and disable the internet by year group, this is done by using the script below:

;disable proxy
If InGroup("YR8")
$rmv = DelKey("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings")
Shell "regedit /s c:\WINDOWS\disanet.reg"
EndIf

Is there any way of changing the script to enable and disable the internet in room rather than year group. The computers are named by which room they are in. For example, the fourth computer in the room called S5 is call S5-04. Would be extremely grateful if any one can help.

THANX