PS C:\temp> Get-ADUser marius.dumitru -Properties memberof|Export-Csv -NoTyeInformation user_groups.csv
You can use "join" function to export the multivalue attribute:
Select-Object name, @{Name="MemberOf"; Expression={[string]::join(";",($_.MemberOf))}}
No comments:
Post a Comment