In Exchange 2010, a security group or a distribution group can't manage a distribution group. The Set-DistributionGroupOwners.ps1 script replaces a distribution group or security group, which is specified in the ManagedBy attribute of a distribution group, with members of the group.
EHLO Post: How to manage groups with groups in Exchange 2010
The download is a text file. Change the file's extension to .ps1 to run it in Exchange Management Shell.
This script has been updated. The script used to have a problem with DL names that contained either a space or special characters, which is now fixed.
This script has been updated. The new script addresses a minor bug that could cause incorrect users to be added to a DL. It also enables recursive ownership assignment. It will now recursively search thru the owning group and sub groups, to add all mailboxes it finds as owners of the DL.