MOSS running stsadm –o migrategroup command keeps the old group name and does not replace with the new name

When you have changed a Security Group in the Active Directory you may know that there will be a need to run STSADM –o MigrateGroup to change all SharePoint related information to let them know the new “Account Name”. Same you need to do when a user changed the AD account but with MigrateUser.


Old AD Name: MyDomain\Finanze
Old Display Name: Financial Members

You changed it to:

New AD Name: MyDomain\Finance
New Display Name: Financial Group Members

Run: STSADM –o migrategroup –oldlogin MyDomain\Finanze –newlogin MyDomain\Finance

These steps are definitely needed to still use the same AD Security Group. There seems to be an additional task necessary because the Display Name is still the old one.

Next steps are possible with PowerShell and in general it looks as following:

PS> [Reflection.Assembly]::Load("Microsoft.SharePoint, Version=, Culture=Neutral, PublicKeyToken=71e9bce111e9429c")

PS> $site = New-Object -TypeName Microsoft.SharePoint.SPSite -ArgumentList <url>

PS> $group = $site.RootWeb.SiteUsers["<domain\group>"]

PS> $group.Name = "<updated group name>"

PS> $group.Update()

To use this with our example data:

PS> [Reflection.Assembly]::Load("Microsoft.SharePoint, Version=, Culture=Neutral, PublicKeyToken=71e9bce111e9429c")

PS> $site = New-Object -TypeName Microsoft.SharePoint.SPSite -ArgumentList http://MyServer/MySiteCollection

PS> $group = $site.RootWeb.SiteUsers["MyDomain\Finance"]

PS> $group.Name = "Financial Group Members"

PS> $group.Update()

If you get an access denied please check the account you are running PowerShell and whether this account is a Site Collection Administrator. On Windows 2008 R2 you may run PowerShell also with the right privileges.

Comments (5)
  1. Mark says:


    wery god post. Helps me to resolve teh first part for Groupe Migration.

    Open question:

    Is it posible to change more than one filed in one step?

    Like Name and WorkEmai?

    Thaks and best Regards


  2. Why not?

    PS> $group.Name = "Financial Group Members"

    PS> $group.MyProperty = "Value for my property"   // if that property exists

    PS> $group.Update()

  3. Yad says:

    Just want to say thanks for this – been looking left and right on how to update an AD Group's display name. Yours was the easiest one. Cheers!

  4. Martin Kelly says:

    Brilliant!! The PS script fixed an AD group renaming issue perfectly!. Many thanks.

  5. Andrei says:

    The command STSADM –o migrategroup –oldlogin ddddd\nnnn –newlogin ddd\nn doesn’t do anything, is just print the stsadm options.

    Did anyone had this??

Comments are closed.

Skip to main content