• 0

Powershell cmdlet to output members of a distribution list.


Question

Hello Guys,

I need to output a list of all the members within a Distribution list on Windows server 2008. There are far too many to go through and type out manually, so I was hoping to use a cmdlet which could output them to a .CSV file.

I've had a few attempts at writing a script that would do it, but I've little experience using Powershell.

I figured the script may look something like this;

Get-UK_London_office | Get-DistributionGroupMember | Export-CSV C:\data.csv

Any help would be greatly appreciated.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.