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

Enable and Disable return to classic experience in SharePoint Online using PowerShell

30 September 2023

In today's article I will show you how we can enable and disable the return classic experience in a SharePoint tenant. It is very important to be able to keep a uniformity in our pages and generally to avoid any differentiation so we can disable or enable some of the controls Let's start with our site which you can see the return to classic SharePoint in your left bottom of your site'

In a similar way if we use powershell we can do it in SharePoint Online In our case we just need to use SharePoint Management Shell as administrators and type the following code

Code In PnP

# Declare Variables

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

#Connect with SharePoint Online

Connect-SPOService -Url $SiteURL

#disable Return to Classic SharePoint

Set-SPOTenant -DisableBackToClassic $True

Now as you can see we do not have any more the choice to return in classic SharePoint

If you now want to activate again this oprion you need to change the powershell script and execute it again

Code In PnP

# Declare Variables

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

#Connect with SharePoint Online

Connect-SPOService -Url $SiteURL

#Enable Return to Classic SharePoint

Set-SPOTenant -DisableBackToClassic $False

And now as you can see we have again this oprion activated

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