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:
  • Expand Groups and Click on Groups link in the left navigation. 
  • Select the Office 365 group you wish to rename
  • Click on "Edit" link next to "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 `
           -Credential $Credential -Authentication Basic -AllowRedirection
#Import the session
Import-PSSession $Session -DisableNameChecking 
#Rename Office 365 Group
Set-UnifiedGroup -Identity "V[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"

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.