Hi,@Rising Flight
Thanks for posting your question in the Microsoft Q&A forum.
According to your description, you want the newsletter group list to export the user list and get the output of all the attributes.
You don't get all the parameters of a member when you use Get-Distribution. Some parameters require the Get-maibox and Get-User commands to get them.
Here is my solution:
- Enter the following command in Exchange Online PowerShell:
Get-DistributionGroupMember -Identity "YourDLName" | Get-Mailbox | Select-Object DisplayName, UserPrincipalName, PrimarySmtpAddress, RecipientType, @{Name='Title';Expression={(Get-User $_.UserPrincipalName).Title}}, @{Name='Department';Expression={(Get-User $_.UserPrincipalName).Department}}, @{Name='Manager';Expression={(Get-User $_.UserPrincipalName).Manager}}, @{Name='EmployeeID';Expression={(Get-User $_.UserPrincipalName).EmployeeID}}, @{Name='Office';Expression={(Get-User $_.UserPrincipalName).Office}}, @{Name='CountryOrRegion';Expression={(Get-User $_.UserPrincipalName).CountryOrRegion}}, @{Name='EmployeeType';Expression={(Get-User $_.UserPrincipalName).EmployeeType}}
| Export-Csv -Path "C:\DLmembers.csv" -NoTypeInformation
- There were no errors, then go to the C drive and find the exported file.
- Open the file.
If my answer is helpful to you, please mark it as the answer so that other users can refer to it. Thank you for your support and understanding.