Hi,
I’m working on an export script to list permissions on mailboxes, and I exported the group members with permissions to an array.
$members = Get-ADGroupMember $groupcontent | select name
I would now like to show them on-screen, and seperated by a “;”
I execute the following :
write-host $mailbox.PrimarySmtpAddress ’ ; ’ $members
But the output is shown as :
Mailboxname@domain.edu ; @{name=User001} @{name=User002}
I however would like to show it as
Mailboxname@domain.edu;User001;User002
Can someone help me to get this?
When I try to use this to change the array to a string, I don’t get the expected result
$members | Join-String -DoubleQuote -Separator ‘,’