how about this:


break on


$user = GetObject("LDAP://CN=noor NIaa.,OU=Test,OU=Messaging,DC=zain,DC=com")
if $user
?"setting info..."
$user.AccountDisabled = 1 ; disabled the account
?"@ERROR: @SERROR"
$user.SetInfo ; Needed to update the new informations
?"@ERROR: @SERROR"
else
?"@ERROR ; @SERROR"
endif


exit 1

What you get when you run this ?

-Shawn

[ 31 December 2001: Message edited by: Shawn ]