mm...
easiest might be to enumerate all identities...

so, your script would look something like:


$index=0
$var_name = enumkey("HKEY_CURRENT_USER\Identities",$index)
while @error=0 and len($var_name)
 $reg_value_OE = ReadValue ("HKEY_CURRENT_USER\Identities\$var_name\Software\Microsoft\Outlook Express\5.0","SendMDN")
 $Outlook_exist = KeyExist ("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Options\Mail")
 $reg_value_MO = 3 ; Dummy value for Microsoft Outlook registry value
 If $Outlook_exist = 1
  $reg_value_MO = ReadValue ("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Options\Mail","Receipt Response")
 EndIf

 Select
 Case ($reg_value_OE = 1) OR ($reg_value_MO = 0)
  $Mail_App_Setting = 1
 Case ($reg_value_OE = 2) OR ($reg_value_MO = 1)
  $Mail_App_Setting = 2
 Case ($reg_value_OE = 4) OR ($reg_value_MO = 2)
  $Mail_App_Setting = 3
 EndSelect

 If ($Mail_App_Setting = 1) OR ($Mail_App_Setting = 2)
  $mod_reg_OE = WriteValue ("HKEY_CURRENT_USER\Identities\$var_name\Software\Microsoft\Outlook Express\5.0","SendMDN","4","REG_DWORD"
  If $Outlook_exist = 1
   $mod_reg_MO = WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Options\Mail","Receipt Response","2","REG_DWORD")
  EndIf
 EndIf
 $index=$index+1
 $var_name = enumkey("HKEY_CURRENT_USER\Identities",$index)
loop

_________________________
!

download KiXnet