Forum Discussion
daivea
Jun 27, 2024Copper Contributor
SPO Site rename
Hi all, I am looking for a way to rename a SharePoint site but only the site name (I don't want the URL changed). I have found scripts to rename the site title but not the actual name. I have...
Jun 28, 2024
Powershell:
$url="https://<tenant>.sharepoint.com/sites/samplesite"
$newTitle="New Title"
Start-SPOSiteRename -Identity $url -NewSiteTitle $newTitle
PnP:
$SiteURL = "https://contoso.sharepoint.com/coolsite"
#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -Credentials (Get-Credential)
#sharepoint online powershell change site name
Set-PnPWeb -Title "Coller Site Portal"
daivea82
Jun 30, 2024Copper Contributor
Thanks, but I don't want the URL changed. Is there no way to do this without changing the URL?
- daivea82Jun 30, 2024Copper ContributorIf I use your second example, all that does is change the title within the site. I am looking to change the name of the site in the admin center
- Jul 01, 2024
Both commands will just change the name, even in admin. That's mirrored
https://pnp.github.io/powershell/cmdlets/Set-PnPWeb.html#-title
- daivea82Jul 01, 2024Copper Contributor
Your command still wants to create a new URL
If i do that and specify a new URL, it works as described. But i don't want the URL changed