Error when using SPO-Site to rename Site name

Brass Contributor


Basically, I need to change the name of a website. However, the following error occurs:


Set-SPOSite -Identity -Title 'New Title'


Set-SPOSite : é um conjunto de sites de Grupos. Os parâmetros válidos para esse tipo de conjunto de sites são "-Identity", "-AllowSelfServiceUpgrade", "-DefaultLinkPermission", "-DefaultSharingLinkType", "-DenyAddAndCustomizePages",
"-DisableCompanyWideSharingLinks", "-DisableSharingForNonOwners", "-LockState", "-Owner", "-ResourceQuota", "-ResourceQuotaWarningLevel", "-SandboxedCodeActivationCapability", "-SharingCapability", "-ShowPeoplePickerSuggestionsForGuestUsers", "-SocialBarOnSitePagesDisabled",
"-StorageQuota", "-StorageQuotaReset" e "-StorageQuotaWarningLevel".
No linha:1 caractere:5
+     Set-SPOSite -Identity -Title $NewTitle
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-SPOSite], ServerException
    + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.SetSite

I can change the group name, if it is connected to Teams I change the name too, but the Site name always gets this error. In this case, my template would be GROUP#0


Do you know why this is and how it could be possible to get around it?

2 Replies

@tcboeira Try using below PnP PowerShell commands once: 


$SiteURL = ""
#Connect to SharePoint site
Connect-PnPOnline -Url $SiteURL -Interactive
#Change site title
Set-PnPWeb -Title "New Title"


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Are you (the Account you are using for your powershell command) the owner of the connected group?