How to Change Office 365 Group Name using PowerShell?

Requirement: Change Office 365 Group Name using PowerShell

How to change Office 365 Group Name using Admin Center?

As an admin, you can rename Office 365 groups through Microsoft 365 admin center. Here is how:

  • Login to the Microsoft 365 Admin Center site: https://admin.microsoft.com
  • Expand Groups and Click on the Groups link in the left navigation. 
  • Select the Office 365 group you wish to rename
  • Click on the “Edit” link next to the “Name” column in the details pane.
  • On the Edit page, You can change the Office 365 group name and click on “Save” to commit your changes.
    change office 365 group name using powershell

Rename Office 365 Group using PowerShell

You can change the name of any Office 365 group using Set-UnifiedGroup cmdlet. E.g: Set-UnifiedGroup -Identity “[email protected]” -DisplayName “New group Name”

#Get Credentials to connect
$Credential = Get-Credential
 
#Create the session
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ `
           -Credential $Credential -Authentication Basic -AllowRedirection
 
#Import the session
Import-PSSession $Session -DisableNameChecking 
#Rename Office 365 Group
Set-UnifiedGroup -Identity "[email protected]" -DisplayName "External Vendors Group"

#Remove the session
Remove-PSSession $Session

This sets the display name of the Office 365 group with Email “[email protected]” to “External Vendors Group”

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

Leave a Reply