$groups = get-distributiongroup
foreach ($group in $groups) {
Write-Host "Group Name: "$group.name
Write-Host "Managed By: " $group.ManagedBy
Write-Host "Members : "
get-distributiongroupmember $group | Select Name
Write-Host "--"
}
On Wed, Aug 18, 2010 at 11:51 AM, Brian Desmond <[email protected]>wrote:
> Get-DistributionGroup | Export-Csv MyGroups.csv
>
> ?
>
> Thanks,
> Brian Desmond
> [email protected]
>
> c - 312.731.3132
>
> -----Original Message-----
> From: Greg Olson [mailto:[email protected]]
> Sent: Wednesday, August 18, 2010 1:48 PM
> To: NT System Admin Issues
> Subject: Generating report for Exchange Distribution groups?
>
> All,
> Is there any way to generate a report that lists out all of our
> Distribution groups, along with the members and owners of the lists? I see
> how to generate a listing of the groups, but not a way to have it put the
> members of each group and the owners as well.
> I'm sure there is probably a PowerShell way of doing this, but my ps skills
> are weak and Google Fu is failing today. This is on Exchange 2007 and
> Outlook 2010.
> Thanks in advance for any help!
> -Greg
>
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
>
>
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
>
>
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~