|  | @@ -33,7 +33,7 @@ If($ADObject)
 | 
	
		
			
				|  |  |              $Groups +=  $CurrentGroup;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              #Get recursive groups.      
 | 
	
		
			
				|  |  | -            $Groups = Get-ADUserNestedGroups -DistinguishedName $GroupDistinguishedName -Groups $Groups;
 | 
	
		
			
				|  |  | +            $Groups = &$PSCommandPath -DistinguishedName $GroupDistinguishedName -Groups $Groups;
 | 
	
		
			
				|  |  |          } elseif ($Duplicates) {
 | 
	
		
			
				|  |  |              "Duplicate: $($CurrentGroup.DistinguishedName)" | Out-Host
 | 
	
		
			
				|  |  |          }
 |