Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
1.7k views
in SharePoint Server by 66 69 85

How to remove the modern experience from SharePoint on-premise. Every time you see a sharepoint list, it appears in a modern User Interface UI. To go to the classic sharepoint UI, click the left-bottom button `Return to classic SharePoint`.

return to classis sharepoint

Is there a way to remove the modern experience from the entire site?


1 Answer

1 like 0 dislike
by 66 69 85
edited by
 
Best answer

How to Disable Modern Experience in SharePoint 2019?

By running the script below, you can disable Modern UI on the SharePoint server at the Site Collection Level.

add-pssnapin Microsoft.SharePoint.PowerShell

$site = Get-SPSite {siteURL}

$featureGUID = New-Object System.Guid "E3540C7D-6BEA-403C-A224-1A12EAFEE4C4"
// Disable Modern Experience
$site.Features.Add($featureGUID, $true)

classic experience

How to Enable Modern Experience in SharePoint 2019?

Run the same script for Enable Modern Experience, but remove the GUID from Features.

add-pssnapin Microsoft.SharePoint.PowerShell

$site = Get-SPSite {siteURL}

$featureGUID = New-Object System.Guid "E3540C7D-6BEA-403C-A224-1A12EAFEE4C4"

// Enable Modern Experience
$site.Features.Remove($featureGUID, $true)
If you don’t ask, the answer is always NO!
...