You need to incorporate '-Resultsize Unlimited'

--
Espi


On Tue, Nov 17, 2015 at 6:22 PM, Mazzaccaro, David <
[email protected]> wrote:

> Hi all,
> I am trying to get this Powershell script to include empty distribution
> lists.
> Any ideas?
>
> foreach ($group in Get-DistributionGroup) {get-distributiongroupmember
> $group | sort displayname | ft
> @{expression={$_.displayname};Label=”$group”},
> @{expression={$_.PrimarySmtpAddress};Label=”Emailaddress”} | Out-File
> c:\output\DLMembers.txt -append}
>
> Thanks!
>
>

Reply via email to