So you want to check all registry value for the correct data?
Code:

$key='HKEY_CURRENT_USER\Software\Meditech\Wrkstn\INIPTPDRIVER'
$values=arrayenumvalue($key) ;UDF
for each $value in $values
$data=readvalue($key,$value)
if left($data,7)='HPLaser'
$rc=writevalue($key,$value,'PPII','REG_SZ')
endif
next

_________________________
There are two types of vessels, submarines and targets.