Wednesday, October 8, 2014

SharePoint 2013: Update Displayname of AD Groups after name changes

So, someone changed the AD Group names, which wouldn't be a problem if SharePoint would just get this change on it's on.
But no, I had to write a script to get the changed AD Names. Thankfully I only need to change the display name.
The login name is a GUID which will stay the same even after the AD Group name changed.

In my case I don't have any users which have "s-" in the loginname. If you have, you might want to adjust this part:

SharePoint 2013: Renaming SharePoint Groups with PowerShell

Let's assume you have to rename SharePoint Groups, a lot of them and you have to do it really fast. What will you do? Of course you will use a trainee or PowerShell. I can't give you any advice on trainees, but here's a little PowerShell script. In my example I just need to change a prefix, maybe because the SharePoint groups now belongs to a different company or whatever reason.