Forum Discussion
tcboeira
Mar 21, 2024Brass Contributor
Error when using SPO-Site to rename Site name
Hello,
Basically, I need to change the name of a website. However, the following error occurs:
Set-SPOSite -Identity https://mytenant.sharepoint.com/sites/mysite -Title 'New Title'
Set-SPOSite : https://mytenant.sharepoint.com/sites/mysite é 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 https://mytenant.sharepoint.com/sites/mysite -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?
tcboeira Try using below PnP PowerShell commands once:
$SiteURL = "https://mytenant.sharepoint.com/sites/mysite" #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.
- AndreRadtkeBrass ContributorAre you (the Account you are using for your powershell command) the owner of the connected group?