ah ok ... can't smell that [Wink]

Billy stated :

quote:
The computers are named by which room they are in. For example, the fourth computer in the room called S5 is call S5-04
so the possible scriptlet (using at least KiX 4.20) would be :

ini-file used to determine which are enabled :

code:
[RoomsEnabled]

Rooms=S5,S4,S3

Script to run :



break on

$ini = "[path]\inifile.ini"

$enabled = split(readprofilestring($ini"RoomsEnabled" , "Rooms"), ",")

if ascan($enabledsubstr(@wksta,1,2) ) > -1 ; first 2 chars of Workstationname
                                             ; matches one of the elements of $enabled
      ; do the appropriate step to enable here!                                       
else ; disable!
    $rmv = delkey("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings")
    Shell "regedit /s c:\WINDOWS\disanet.reg"   
endif



hth

[ 13. March 2003, 14:19: Message edited by: jpols ]
_________________________