Old PowerShell sux.
Change:
"Members:"
Get-DistributionGroupMember -Identity $group.Identity -ResultSize
Unlimited |% {
foreach( $member in $_ )
{
"`t$($member.Name)"
}
}
To
"Members:"
$members = Get-DistributionGroupMember -Identity $group.Identity
-ResultSize Unlimited
foreach( $member in $members )
{
"`t$($member.Name)"
}
From: [email protected] [mailto:[email protected]] On
Behalf Of Daniel Chenault
Sent: Wednesday, June 17, 2015 12:03 PM
To: [email protected]
Subject: RE: [Exchange] paging MBS!
Exchange 2010 on 2008 R2, AD 2008 R2 (with a few 2003 servers still in the mix)
Running the script on one of the Exchange mailbox servers via RDP.
[PS] C:\users\public\documents>$PSVersionTable.PSVersion
Major Minor Build Revision
----- ----- ----- --------
2 0 -1 -1
________________________________
From: [email protected]<mailto:[email protected]>
To: [email protected]<mailto:[email protected]>
Subject: RE: [Exchange] paging MBS!
Date: Wed, 17 Jun 2015 01:49:35 +0000
What is ur Exchange version and ur AD version and where are you running the
script?
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Daniel Chenault
Sent: Tuesday, June 16, 2015 7:29 PM
To: [email protected]<mailto:[email protected]>
Subject: [Exchange] paging MBS!
I grabbed your script from
http://theessentialexchange.com/blogs/michael/archive/2010/08/18/generating-a-report-on-distribution-groups-and-their-membership.aspx
and ran it. Every group it hit I got the following:
Group Name & Identity: All San Diego Marketing Group, domain.org/TIG/TIG
Distribution Lists/All San Diego Marketing Gro
up
Members:
Pipeline not executed because a pipeline is already executing. Pipelines cannot
be executed concurrently.
+ CategoryInfo : OperationStopped:
(Microsoft.Power...tHelperRunspace:ExecutionCmdletHelperRunspace) [],
PSInvalidOperationException
+ FullyQualifiedErrorId : RemotePipelineExecutionFailed
Pipeline not executed because a pipeline is already executing. Pipelines cannot
be executed concurrently.
+ CategoryInfo : OperationStopped:
(Microsoft.Power...tHelperRunspace:ExecutionCmdletHelperRunspace) [],
PSInvalidOperationException
+ FullyQualifiedErrorId : RemotePipelineExecutionFailed