In your script what does this yield?
code:
  $OfficeName = $UserObj.physicalDeliveryOfficeName 
? "@error @serror"
? $OfficeName

{edit} This assumes that you have already got the $UserObj by ADSI.

[ 21. October 2002, 20:25: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/