I you are using the LDAP:// provider then the property and access is somewhat different.

$Flags = $objUser.Get("userAccountControl")

Then the bitwise operation must be performed on this value.
code:
if $Flags & 2
? Account is DISABLED"
endif



[ 22. May 2003, 17:10: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/