header image

Group’s displayname

Posted by: | February 28, 2012 | 1 Comment |

A question on the forum asked about setting the value for a group’s displayname attribute. 

When you first create a group using any of the techniques we have seen earlier the displayname property is not set.  You can set it like this

Get-QADGroup -Identity GroupDmlSecA
$group = "GroupDmlSecA"
Get-QADGroup -Identity $group
Get-QADGroup -Identity $group | Set-QADGroup -ObjectAttributes @{displayName = $group}


Not sure why you would want to do this as as far as I can tell the displayname is never used for a group – the name showing in AD Users and Computers is the object name (cn attribute) not the display name

under: PowerShell and Active Directory

1 Comment

  1. By: Keith on February 28, 2012 at 4:20 pm      

    I think SharePoint uses the display name. If there is none it uses domain\samaccountname(domain\samaccountname). Really ugly.