Try:
code:
IF INGROUP ("Accounting")
SELECT
CASE ($NT_mode = 'yes')
$rc=WriteValue ('HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Outlook\OMI Account Manager\Accounts\00000001',
'SMTP Reply To Email Address', @userid+'@@companyname.com', 'REG_BINARY')
ENDSELECT
ENDIF

Are you sure about the REG_BINARY part? Then you might need to provide the value in REG_BINARY format and not plain text format. That means you'll have to convert the value into it's corresponding hex values and possibly even convert to UNICODE.

[ 26 July 2002, 18:38: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.