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 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 "group@tenant.com" -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 "Vendors@TheCrescentTech.com" -DisplayName "External Vendors Group"

#Remove the session
Remove-PSSession $Session
This sets the display name of the Office 365 group with Email "Vendors@TheCrescentTech.com" to "External Vendors Group"
How to Change Office 365 Group Name using PowerShell? How to Change Office 365 Group Name using PowerShell? Reviewed by Salaudeen Rajack on May 24, 2018 Rating: 5

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.