How to rename the Site Collection URL in Default Zone

Categories: PowerShell, SharePoint
#Open SharePoint Management Shell
$DefaultSiteCollectionUrl = "http://www.vincenzonardone.it";
$NewDefaultSiteCollectionUrl = "http://blog.vincenzonardone.it/";

$siteCollection = Get-SPSite $DefaultSiteCollectionUrl;
$siteCollection.Rename($NewDefaultSiteCollectionUrl);
«
»

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.