Official Site

Konstantinos Boutsioulis

Microsoft Most Valuable Professional M365 Apps & Services

Microsoft Most Valuable Professional Business Applications

Consultant & Sr Cloud Solution Architect Modern Wokrplace

Free Material

Find hereMore than 150 Articles about Microsoft Technologies on Modern Workplace

Change site url in SharePoint Online Using PowerShell

27 June 2023

In today's article I will show you how easy it is to change the url of one of the sites we have created in the past using powershell First we need to identify the site we want to change

Then you will need to copy the url of the site and then run the following Powershell Script through which the url of the site of your choice will be changed Initially we have DemoCreation and we will change it to NewDemo the url of our site

I am running PowerShell with administrator privileges and I have

Code In PnP

# Declare Variables

$Tenant="https://mytenant-admin.sharepoint.com"

$OldSiteUrl="https://mytenant.sharepoint.com/sites/DemoCreation"

$NewSiteUrl="https://mytenant.sharepoint.com/sites/NewDemo"

#Connect with PnP Online to your tenant

Connect-PnPOnline -Url $Teanant -Interactive

#Execute Rename Site

Start-SPOSiteRename -Identity $OldSiteUrl -NewSiteUrl $NewSiteUrl

and as you can finally see the change has been made successfully

More can be found in the relevant Microsoft literature on the official site at

More can be found in the relevant Microsoft literature on the official site at

Here

#SharePoint #technology #microsoft #PowerShell #PnP #digitaltransformation #cloud #mvpbuzz #m365