Quantcast
Channel: Admins Goodies » adfs
Viewing all articles
Browse latest Browse all 8

Bulk update displayname attribute to match cn attribute for all AD groups

$
0
0

Question

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?

Asked by Daniel Lucas

Answer

Using the Microsoft Powerhell 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}
Answered by Mike

Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images