Hello Glenn, thank you for your input. This will definitely come helpful. Does the ADSIUSRinfo() and ADGroupMember require the full CN format? if so do I need to use fnldapquery() or run this:

 Code:
dsquery user domainroot -name "*last*, first"


or use fnldapquery like this:

 Code:
 $aAttributes = "adspath" ; "Name", "AdsPath", "member"
 $sADsPath = "LDAP://"+GetObject("LDAP://RootDSE").Get("defaultNamingContext")
 $strFilter = "(&(objectClass=user)(cn=*))"

 $aResults = fnLDAPQuery($aAttributes,$sADsPath,$strFilter)

 For $c = 0 to Ubound($aResults) 
 		$x = TRIM(SUBSTR($aResults[$c,$r], 8, 20000))
	? $x
 Next


Edited by jvd626 (2010-09-09 11:04 PM)