You need to perform bitwise operations for that data.


$usr = GetObject("LDAP://CN=Jsmith,OU=Sales,DC=ArcadiaBay,DC=Com")
$flags = $usr.Get("UserAccountControl")
if $flags & 65536
? "Password does not expire"
else
? "Password CAN expire"
endif


See the documetation for AdminMisc.DLL for some additional data.

http://mywebpages.comcast.net/habullock/Win32Admin.htm#User

More data: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsi/modifying_user_properties.asp

[ 21. May 2003, 05:24: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/