Kelp,

The UDF returns the current user's DN string when called without args.. You can code something like this:
 Code:
$MyDN = ADSIUserInfo()
$PVal = ADSIUserInfo($MyDN, 'attrib')             ; get current value
$NVal = ADSIUserInfo($MyDN, 'attrib', 'NewVal')   ; set new and then read
If @ERROR Or $PVal = $NVal
  'oops! something went horribly wrong!' @CRLF
  @SERROR @CRLF
  'Prior: ' $PVal ' / New: ' $NVal @CRLF
EndIf
Also - the latest version of all the UDFs that I write or use are available from the Resources / Kix UDF Library of my web site. As we enhance these UDFs, the most current version is pulled from our dev library and formatted for display nightly. Version 2.0 can be downloaded, which allows you to use an array of attributes and values to get/set more than one.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D