In the script shown in the first post if you change the CommandText to :

$oCommand1.CommandText = "select name, objectClass from 'LDAP://NetBIOSDomainName/DC=DNSDomainName, DC=com' " +
"WHERE objectClass='user' and objectClass<>'computer'"

You will elinmate the computers and only return USERs.

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