I have this command that works great it gets me what i need but i was wondering if it there is a way to break down the list of users. For example instead of having the users listed in one continuous string to be broken down like below
USer1
USer2
instead of like the below
User1;User2;User3
this is the script that im using
Get-DynamicDistributionGroup | where {$_.AcceptMessagesOnlyFromSendersOrMembers -ne $null} | Select Name,@{Name=AcceptMessagesOnlyFromSendersorMembers;Expression={[string]::join(;,($_.AcceptMessagesOnlyFromSendersorMembers | foreach {$_.Name}))}} | Export-Csv C:\MailDistrGroupAccept.csv -NoType -Force
any help would be great