Hi!

With the following Script-Line I would like to disable the Internet-Connections on school-PC from the Teacher-PC:

$Err=WriteValue("\\BBS-GER701\HKEY_USERS\S-1-5-21-57989841-1202660629-1060284298-2727\Software\Microsoft\Windows\CurrentVersion\Internet Settings","ProxyEnable","0","REG_DWORD")

.... for each Student-PC with different PC-name and different USER-SID. This works OK an fast, if all PCs are turned on. But if some of the PCs are turned off it takes about 30 Seconds for my scripts to go on to the next PC to make the setting.

Can someone help me out and have an idea on how to FAST check if the stundent-PC is turned on, so I could only try to do this settings then.

Regards,

Luziekix