No, dosn't work either - returns "1".

I tried this:

code:
$Server="Serverx"
$Site="Sitex"
$User="Userx"
$Org="Orgx"

$UserDN="$Server/CN=$User,CN=Recipients,OU=$Site,o=$Org"

$ObjUser=GetObject("LDAP://$UserDN")

$OMailbox=$ObjUser.GetEx("otherMailbox")
$IMax=UBound($oMailbox) $IMax ?
ReDim Preserve $oMailbox[$IMax]
$oMailbox[$IMax]="smtp$$xx@@test.dk"

$ObjUser.PutEx(2,"otherMailbox",$oMailbox) @Error ?

Epl.: Retreiving the original E-Mail Addresses Array, and adding the New Mail Address, then replacing the whole thing with PutEx(2,...).

This is accepted (returncode 0), however in Exchange the added E-Mail Address is listed as: ???????k (with no message type).

Logging reveals:
"LDAP modify request contains value CCMAIL$Test, Userx at Sitex."
"LDAP modify request contains value MS$Orgx/Sitex/Userx."
"LDAP modify request contains value 浳灴砤䁸整瑳搮k."

From last log line it appears there are somthing wrong in the valuetype passed

What on earth...

[ 09. September 2003, 14:22: Message edited by: Chris S. ]