Saturday 12 November 2016

Change site collection URL in SharePoint 2016 using PowerShell

Today we are showing you how to rename your site collection in SharePoint 2016 using PowerShell Management.
See just example we have created a site collection and we have worked on the same as per you customer requirement and later they want the same site impacted with different name. To do this we have multiple options like we can copy the site backup or restore, or we can make site as template and create the same site.
We have written about site collection template and save as template in blog below is the URL:
But we can change site collection name instead of going the above steps:
So below are the steps for the changing site collations URL in SharePoint 2016:
Copy the below command and do required change as per below:
$site = Get-SPSite http://sp2016/sites/PSite //Change site collection name
$site.Rename("http://sp2016/sites/Psite_New") //Copy or enter new site name

  • Now verify the site collection name has been changed using command or CA page.


Thanks ☺

No comments:

Post a Comment