Yes.

 Code:
Break on

$oDomain = GetObject("WinNT://@LDomain")
$oDomain.filter = "User",""
For Each $oUser in $oDomain
	;Get the DN name from AD for the specific user.
	$dn = TranslateName (3, "", 3, @LDomain + "\" + $oUser.Name, 1)
	;Get all groups and add <nested> to nested groups (see options).
	$groups = ListNestedGroups("LDAP://" + $dn[0],1)
	For Each $group in $groups
		?$group
	Next
Next


Edited by Mart (2008-02-26 03:25 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.