4

We are setting up ADFS for identity federation with a Microsoft Online service. The documentation states that "Groups without a displayname will NOT get synchronized..." We have over 250 groups that have a blank displayname attribute.

Does anyone know of a way to set the displayname attribute to match the cn attribute for all groups where the displayname is blank?

1
  • Could also use name or sAMAccountName attributes to update displayname. Dec 18, 2012 at 14:42

1 Answer 1

8

Using the Microsoft Powershell commands you can do this. You need to import the AD module if you do not have it already imported into your current powershell session.

Get-ADGroup -filter * -Properties Displayname | Where-Object {$_.displayname -eq $null} | ForEach-Object {Set-ADGroup -Identity
$_ -DisplayName $_.SamaccountName}
1
  • Great. Glad I could help.
    – Mike
    Dec 19, 2012 at 11:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.