ok.. in short terms.

What you are doing is enuming the Computers OU and retrieving all the computer names.
then you are updating the HKCU of each PC.

what you need to do then is to loop through HKU using:
code:
 $index=0
:loop1
$usersid=enumkey("\\$remotepc\HKEY_USERS",$index)
if not @error
if not instr($usersid,"classes")
$=writevalue(...)
endif
$index=$index+1
goto loop1
endif



[ 21. November 2002, 14:30: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask